多选题In which two web application directories can dependent classes and libraries be located? ()A/WEB-INF/lib as a JAR fileB/META-INF/lib as a JAR fileC/classes as compiled class filesD/WEB-INF/lib as compiled class filesE/WEB-INF/classes as compiled class 

题目
多选题
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

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

第1题:

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

第2题:

在Web应用程序的档案与目录结构中,web.xml是直接放置在()之中。

  • A、WEB-INF目录
  • B、conf目录
  • C、lib目录
  • D、classes目录

正确答案:A

第3题:

A developer is creating a class Book that needs to access class Paper.The Paper class is deployed in a JARnamedmyLib.jar.Whichthree,taken independently,will allow the developer to use the Paper class while compiling the Book class?()

A.The JAR fileis located at$JAVA_HOME/jre/classes/myLib.jar.

B.The JAR fileis located at$JAVA_HOME/jre/lib/ext/myLib.jar.

C.TheJ AR fileis located at/foo/myLib.jar and aclasspath environment variable is set that includes /foo/myLib.jar/Paper.class.

D.The JAR fileis located at/foo/myLib.jar and a classpath environment variable is set that includes/foo/myLib.jar.

E.The JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-cp/foo/myLib.jar/Paper Book.java.

F.The JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-classpath/foo/myLib.jar Book.java.


参考答案:B, D, F

第4题:

A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Book class?()

  • A、The JAR file is located at $JAVA_HOME/jre/classes/myLib.jar
  • B、The JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar
  • C、The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.class
  • D、The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar
  • E、The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac –cp /foo/myLib.jar/Paper Book.java
  • F、The JAR file is located at foo/myLib.jar and the Book class is compiled using javac –classpath /foo/myLib.jar Book.java

正确答案:B,D,F

第5题:

假设在helloapp应用中有一个Javabean文件HelloServlet,它位于org.javathinker包下,那么这个bean的class文件应该放在什么目录下? ()

  • A、helloapp/HelloServlet.class
  • B、helloapp/WEB-INF/HelloServlet.class
  • C、helloapp/WEB-INF/classes/HelloServlet.class
  • D、helloapp/WEB-INF/classes/org/javathinker/HelloServlet.class

正确答案:D

第6题:

You are developing several tag libraries that will be sold for development of third-party web applications.You are about to publish the first three libraries as JAR files: container-tags.jar,advanced-html-form-tags.jar, and basic-html-form-tags.jar. Which two techniques are appropriate for packaging the TLD files forthese tag libraries?()

  • A、The TLD must be located within the WEB-INF directory of the JAR file.
  • B、The TLD must be located within the META-INF directory of the JAR file.
  • C、The TLD must be located within the META-INF/tld/ directory of the JAR file.
  • D、The TLD must be located within a subdirectory of WEB-INF directory of the JAR file.
  • E、The TLD must be located within a subdirectory of META-INF directory of the JAR file.

正确答案:B,E

第7题:

在WEB应用程序的目录结构中,在WEB-INF文件夹中的lib目录是放()的。

  • A、.jsp文件
  • B、.class文件
  • C、.jar文件
  • D、web.xml文件

正确答案:C

第8题:

在下面哪个web应用目录中可以放置所需要的class文件?()  

  • A、 /WEB-INF/lib
  • B、 /META-INF/lib
  • C、 /classes 放置已经编译的类文件
  • D、 /WEB-INF/classes

正确答案:D

第9题:

在J2EE中,Web容器要求必须在应用程序中有一个WEB-INF目录,这个目录中包括()。 

  • A、server.xml文件,servlet子目录,jar子目录
  • B、web.xml文件,classes子目录,jar子目录
  • C、server.xml文件,Servlet子目录
  • D、web.xml文件,classes子目录,lib子目录

正确答案:D

第10题:

You want to create a valid directory structure for your Java EE web application, and your application usestag files and a JAR file. Which three must be located directly in your WEB-INF directory(NOT in asubdirectory of WEB-INF)?()

  • A、The JAR file
  • B、A directory called lib
  • C、A directory called tags
  • D、A directory called TLDs
  • E、A directory called classes
  • F、A directory called META-INF

正确答案:B,C,E

更多相关问题