多选题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?()AThe JAR fileis loc

题目
多选题
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,A
解析: 暂无解析
更多“A developer is creating a class Book that needs to access cl”相关问题
  • 第1题:

    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

  • 第2题:

    You work as an application developer at Certkiller .com. You are in the process of creating an application for Certkiller .com’s Human Resources department that tracks employee benefits. You have to store current employee data without recompiling the application. You elect to store this employee data as a custom section in the application configuration file. The relevant portion of the application configuration file is shown in the following exhibit: <?xml version="1.0" encoding="utf-8" ?>   You want to use the .NET 2.0 Configuration API to access the custom section. You need to ensure that programmatic access of the EmployeeSection element is enabled. What should you do?()

    • A、 Create a custom section handler class that inherits the ConfigurationSection interface.
    • B、 Add a section element to the EmployeeSection element of the application configuration file.
    • C、 Create a custom section handler class that implements the IConfigurationSectionHandler interface.
    • D、 Add an EmployeeSection element to the configSections element of the application configuration file.
    • E、 Create a custom section handler class that implements the IApplicatioSettingsProvider interface.
    • F、 Add a section element to the configSections element of the application configuration file.

    正确答案:A,F

  • 第3题:

    Which two are benefits of fully encapsulating a class?()  

    • A、 Performance of class methods is improved.
    • B、 Implementation details of the class are hidden.
    • C、 Access modifiers can be omitted on class data members.
    • D、 Code that uses the encapsulation class can access data members directly.
    • E、 Internal operation of the class can be modified without impacting clients of that class.

    正确答案:B,E

  • 第4题:

    You want to limit access to a method of a public class to members of the same class. Which access modifier accomplishes this objective?()  

    • A、 Public
    • B、 Private
    • C、 Protected
    • D、 Transient
    • E、 No access modifier is required

    正确答案:B

  • 第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 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

  • 第6题:

    You work as an application developer at Certkiller .com. Certkiller .com has been contracted to develop an application for the local bank.You have been given the responsibility of creating this application and need to store each transaction record, which is identified using a complex transaction identifier,in memory. The bank informs you that the total amount of transaction records could reach 200 per day. To achieve this, you decide to utilize one of the existing collection classes in the .NET 2.0 class library. You need to ensure that you the collection class you select is the most efficient one for storing transaction records.What should you do?()

    • A、 Select the ListDictionary collection class.
    • B、 Select the HashTable collection class.
    • C、 Select the Queue collection class.
    • D、 Select the StringCollection collection class.

    正确答案:B

  • 第7题:

    You want a class to have access to members of another class in the same package. Which is the most restrictive access modifier that will accomplish that will accomplish this objective?()

    • A、 Public
    • B、 Private
    • C、 Protected
    • D、 Transient
    • E、 No access modifier is required.

    正确答案:E

  • 第8题:

    单选题
    Which declaration prevents creating a subclass of an outer class?()
    A

     Static class FooBar{}

    B

     Private class FooBar{}

    C

     Abstract public class FooBar{}

    D

     Final public class FooBar{}

    E

     Final abstract class FooBar{}


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

  • 第9题:

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

  • 第10题:

    单选题
    You want to limit access to a method of a public class to members of the same class. Which access accomplishes this objective?()
    A

     public

    B

     private

    C

     protected

    D

     transient

    E

     default access


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

  • 第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题:

    单选题
    You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  You decide to enable session state for the application. You need to determine whether the sessionID is maintained in the URL of the request.  What should you do?()
    A

    The RequestType property of the HttpRequest class should be accessed.

    B

    The IsCookieless property of the HttpSessionState class should be accessed.

    C

    The UrlDecode method of the HttpServerUtility class should be accessed.

    D

    The UrlEncode method of the HttpServerUtility class should be accessed.


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

  • 第13题:

    Which declaration prevents creating a subclass of an outer class?()

    • A、 Static class FooBar{}
    • B、 Private class FooBar{}
    • C、 Abstract public class FooBar{}
    • D、 Final public class FooBar{}
    • E、 Final abstract class FooBar{}

    正确答案:D

  • 第14题:

    An administrator replaced a router with a switch. End users are able to access network shares butare not able to access the Internet. Which of the following is the BEST explanation why the usersare unable to access the Internet?()

    • A、Router routes traffic between different networks and a switch does not
    • B、The new switch is faulty and needs to be replaced and configured correctly
    • C、The firewall needs to be setup to allow traffic to reach the Internet
    • D、The switch needs to be setup to forward data traffic to the Internet

    正确答案:A

  • 第15题:

    You want to limit access to a method of a public class to members of the same class. Which access accomplishes this objective?()  

    • A、 public
    • B、 private
    • C、 protected
    • D、 transient
    • E、 default access

    正确答案:B

  • 第16题:

    You are creating a job class. You want access to the detailed information for all the runs of each job in the class and every operation performed on every job in the class. Which setting will you use for the LOGGING_LEVEL parameter?()

    • A、 LOGGING_OFF
    • B、 LOGGING_RUNS
    • C、 LOGGING_FULL
    • D、 LOGGING_NULL

    正确答案:C

  • 第17题:

    You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  You decide to enable session state for the application. You need to determine whether the sessionID is maintained in the URL of the request.  What should you do?()

    • A、The RequestType property of the HttpRequest class should be accessed.
    • B、The IsCookieless property of the HttpSessionState class should be accessed.
    • C、The UrlDecode method of the HttpServerUtility class should be accessed.
    • D、The UrlEncode method of the HttpServerUtility class should be accessed.

    正确答案:B

  • 第18题:

    You are developing a Windows Communication Foundation (WCF) REST service to provide access to a library book catalog. The following code segment defines the service contract. (Line numbers are included for reference only.) 01 [ServiceContract( )] 02 [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] 03 public Class LibraryService 04 { 05 public Book GetBookByTitle(string title) 06 { 07 ... 08 } 09 10 [WebGet(UriTemplate = "Book/{id}")] 11 public Book GetBookById(string id) 12 { 13 ... 14 } 15 }Library patrons want the ability to search the catalog by title.You need to ensure that the GetBookByTitle method is exposed as a service method.Which code segment should you insert at line 04?()

    • A、[WebGet(UriTemplate = "Book/{title}")]
    • B、[WebGet(UriTemplate = "BookByTitle/{title}")]
    • C、[WebGet(UriTemplate = "Book/{titleToSearch}")]
    • D、[WebGet(UriTemplate = "{titleToSearch}")]

    正确答案:B

  • 第19题:

    多选题
    You work as an application developer at Certkiller .com. You are in the process of creating an application for Certkiller .com’s Human Resources department that tracks employee benefits. You have to store current employee data without recompiling the application. You elect to store this employee data as a custom section in the application configuration file. The relevant portion of the application configuration file is shown in the following exhibit:          You want to use the .NET 2.0 Configuration API to access the custom section. You need to ensure that programmatic access of the EmployeeSection element is enabled. What should you do?()
    A

    Create a custom section handler class that inherits the ConfigurationSection interface.

    B

    Add a section element to the EmployeeSection element of the application configuration file.

    C

    Create a custom section handler class that implements the IConfigurationSectionHandler interface.

    D

    Add an EmployeeSection element to the configSections element of the application configuration file.

    E

    Create a custom section handler class that implements the IApplicatioSettingsProvider interface.

    F

    Add a section element to the configSections element of the application configuration file.


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

  • 第20题:

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


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

  • 第21题:

    单选题
    You are creating a job class. You want access to the detailed information for all the runs of each job in the class and every operation performed on every job in the class. Which setting will you use for the LOGGING_LEVEL parameter?()
    A

     LOGGING_OFF

    B

     LOGGING_RUNS

    C

     LOGGING_FULL

    D

     LOGGING_NULL


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

  • 第22题:

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


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

  • 第23题:

    单选题
    You want a class to have access to members of another class in the same package. Which is the most restrictive access modifier that will accomplish that will accomplish this objective?()
    A

     Public

    B

     Private

    C

     Protected

    D

     Transient

    E

     No access modifier is required.


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

  • 第24题:

    单选题
    You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?()
    A

     public

    B

     private

    C

     protected

    D

     transient

    E

     default access


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