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


相似考题
更多“多选题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 ”相关问题
  • 第1题:

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

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

    正确答案:A

  • 第2题:

    假设在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

  • 第3题:

    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

  • 第4题:

    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

  • 第5题:

    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 -d /foo/myLib.jar Book.java
    • G、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,G

  • 第6题:

    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 Bookclass?()

    • 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

  • 第7题:

    多选题
    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,E
    解析: 暂无解析

  • 第8题:

    多选题
    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 Bookclass?()
    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


    正确答案: A,F
    解析: 暂无解析

  • 第9题:

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


    正确答案: F,D
    解析: 暂无解析

  • 第10题:

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


    正确答案: E,B
    解析: 暂无解析

  • 第11题:

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


    正确答案: A,D
    解析: 暂无解析

  • 第12题:

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

     /WEB-INF/lib

    B

     /META-INF/lib

    C

     /classes 放置已经编译的类文件

    D

     /WEB-INF/classes


    正确答案: A
    解析: 暂无解析

  • 第13题:

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

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

    正确答案:C

  • 第14题:

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

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

    正确答案:D

  • 第15题:

    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

  • 第16题:

    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

  • 第17题:

    A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where theold one is installed. Bob is currently able to run a Java chess program starting from his home directory /home/bob using the command: java -classpath /test:/home/bob/downloads/*.jar games.Chess Bob’s CLASSPATH is set (at login time) to: /usr/lib:/home/bob/classes:/opt/java/lib:/opt/java/lib/*.jar  What is a possible location for the Chess.class file?()

    • A、/test/Chess.class
    • B、/home/bob/Chess.class
    • C、/test/games/Chess.class
    • D、/usr/lib/games/Chess.class
    • E、/home/bob/games/Chess.class

    正确答案:C

  • 第18题:

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


    正确答案: D,B
    解析: 暂无解析

  • 第19题:

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

    .jsp文件

    B

    .class文件

    C

    .jar文件

    D

    web.xml文件


    正确答案: D
    解析: 暂无解析

  • 第20题:

    单选题
    假设web应用的文档根目录为MyApp,那么可以从哪里找到database.jar文件()
    A

    MyApp目录下

    B

    MyApp/images目录下

    C

    MyApp/WEB-INF目录下

    D

    MyApp/WEB-INF/lib目录下


    正确答案: B
    解析: 暂无解析

  • 第21题:

    多选题
    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 -d /foo/myLib.jar Book.java

    G

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


    正确答案: F,A
    解析: 暂无解析

  • 第22题:

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


    正确答案: B,A
    解析: 暂无解析

  • 第23题:

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

    server.xml文件,servlet子目录,jar子目录

    B

    web.xml文件,classes子目录,jar子目录

    C

    server.xml文件,Servlet子目录

    D

    web.xml文件,classes子目录,lib子目录


    正确答案: B
    解析: 暂无解析