CMS专题

多选题Which the two are true regarding a web application class loader?()AA web application may override the web container’s implementation classesBA web application running in a J2EE product may override classes in the javax.* namespaceCA web application cla

题目
多选题
Which the two are true regarding a web application class loader?()
A

A web application may override the web container’s implementation classes

B

A web application running in a J2EE product may override classes in the javax.* namespace

C

A web application class loader may NOT override any classes in the java.* and javax.*  namespace

D

Resources in the WAR class directory or in any of the JAR files within the library directory may  be accessed using the J2SE semantics of getResource

E

Resources in the WAR class directory or in any of the JAR files within the library directory  cannot be accessed using the J2SE semantics of getResource

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which two statements are true regarding the creation of a default constructor?() 

  • A、 The default constructor initializes method variables.
  • B、 The compiler always creates a default constructor for every class.
  • C、 The default constructor invokes the no-parameter constructor of the superclass.
  • D、 The default constructor initializes the instance variables declared in the class.
  • E、 When a class has only constructors with parameters, the compiler does not create a default constructor.

正确答案:D,E

第2题:

Which two statements are true regarding the role of the Routing Engine (RE)?()

  • A、The RE controls and monitors the chassis.
  • B、The RE manages the Packet Forwarding Engine (PFE).
  • C、The RE receives a copy of the forwarding table from the forwarding plane.
  • D、The RE implements class of service (COS).

正确答案:A,B

第3题:

Click the Exhibit button. Given:Which two statements are true if a NullPointerException is thrown on line 3 of class C? ()

A.The application will crash.

B.The code on line 29 will be executed.

C.The code on line 5 of class A will execute.

D.The code on line 5 of class B will execute.

E.The exception will be propagated back to line 27.


参考答案:B, E

第4题:

In which two locations can library dependencies be defined for a web application? ()

  • A、 the web application deployment descriptor
  • B、 the /META-INF/dependencies.xml file
  • C、 the /META-INF/MANIFEST.MF manifest file
  • D、 the /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath

正确答案:C,D

第5题:

Which two are true regarding a web application class loader?()

  • A、A web application may override the web container’s implementation classes.
  • B、A web application running in a J2EE product may override classes in the javax.* namespace.
  • C、A web application class loader may NOT override any classes in the java.* and javax.* namespaces.
  • D、Resources in the WAR class directory or in any of the JAR files within the library directory may be accessed using the J2SE semantics of getResource.

正确答案:C,D

第6题:

Which the two are true regarding a web application class loader?()

  • A、 A web application may override the web container’s implementation classes
  • B、 A web application running in a J2EE product may override classes in the javax.* namespace
  • C、 A web application class loader may NOT override any classes in the java.* and javax.*  namespace
  • D、 Resources in the WAR class directory or in any of the JAR files within the library directory may  be accessed using the J2SE semantics of getResource
  • E、 Resources in the WAR class directory or in any of the JAR files within the library directory  cannot be accessed using the J2SE semantics of getResource

正确答案:C,D

第7题:

Which two statements are true regarding the return values of property written hashCode and equals methods from two instances of the same class?()

  • A、 If the hashCode values are different, the objects might be equal.
  • B、 If the hashCode values are the same, the object must be equal.
  • C、 If the hashCode values are the same, the objects might be equal.
  • D、 If the hashCode values are different, the objects must be unequal.

正确答案:C,D

第8题:

Which two statements are true regarding the role of the Routing Engine (RE)?()

A. The RE controls and monitors the chassis.

B. The RE manages the Packet Forwarding Engine (PFE).

C. The RE receives a copy of the forwarding table from the forwarding plane.

D. The RE implements class of service (COS).


参考答案:A, B

第9题:

In which two web application directories can dependent classes and libraries be located? ()

  • A、 /WEB-INF/lib as a JAR file
  • B、 /META-INF/lib as a JAR file
  • C、 /classes as compiled class files
  • D、 /WEB-INF/lib as compiled class files
  • E、 /WEB-INF/classes as compiled class files
  • F、 /META-INF/classes as compiled class files

正确答案:A,E

第10题:

Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()

  • A、<class><br/>
  • B、<webapp><br/>
  • C、<servlet><br/>
  • D、<codebase><br/>
  • E、<servlet-class>

正确答案:E

更多相关问题