多选题Given: And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to "." (current directory). Which two java commands entered at the commandline will run MainClass?()Ajava MainClass if run fro

题目
多选题
Given: And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to "." (current directory). Which two java commands entered at the commandline will run MainClass?()
A

java MainClass if run from the /apps directory

B

java com.company.application.MainClass if run from the /apps directory

C

java -classpath /apps com.company.application.MainClass if run from any directory

D

java -classpath . MainClass if run from the /apps/com/company/application directory

E

java -classpath /apps/com/company/application:. MainClass if run from the /apps directory


相似考题
更多“多选题Given: And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to "." (current directory). Which two java commands entered at the commandline will run MainClass?()Ajava MainClass if run fro”相关问题
  • 第1题:

    Given:Which two can be results?()

    A. java.lang.RuntimeException: Problem

    B. run.java.lang.RuntimeException: Problem

    C. End of method.java.lang.RuntimeException: Problem

    D. End of method.run.java.lang.RuntimeException: Problem

    E. run.java.lang.RuntimeException: Problem End of method.


    参考答案:D, E

  • 第2题:

    package com.sun.sjcp; public class Commander{ public static void main(String[]args){ //more code here } } Assume that the class fileis located in /foo/com/sun/sjcp/,the current directory is/foo/,and that the classpath contains“.“(current directory). Which command line correctly runs Commander?()

    • A、java Commander
    • B、java com.sim.sjcp.Commander
    • C、java com/sun/sjcp/Commander
    • D、java-cpcom.sun.sjcp Commander
    • E、java-cpcom/sun/sjcp Commander

    正确答案:B

  • 第3题:

    Users are reporting problems connecting to servers in the remote company.com domain. The administrator suspects this to be a DNS problem. Which of the following commands would the administrator run to identify the DNS server of the remote company.com?()

    • A、dig company.com ns
    • B、ipconfig/all
    • C、ifconfig-a
    • D、dig company.com mx

    正确答案:A

  • 第4题:

    A file named "core" exists in the current directory.  Which of the following commands should be used to determine what created the "core" file?()

    • A、 dump -t core 
    • B、 strings core 
    • C、 trace -a core 
    • D、 crash core /unix_up

    正确答案:B

  • 第5题:

    A user would like their shell prompt to reflect the current directory. Which of the following environment variables can be set to accomplish this?()

    • A、PS1
    • B、PATH
    • C、PROMPT
    • D、LOCPATH

    正确答案:A

  • 第6题:

    package com.company.application;  public class MainClass {  public static void main(String[] args) { }  }  And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to “.“ (current directory).  Which two java commands entered at the command line will run MainClass?()

    • A、 java MainClass if run from the /apps directory
    • B、 java com.company.application.MainClass if run from the /apps directory
    • C、 java -classpath /apps com.company.application.MainClass if run from any directory
    • D、 java -classpath . MainClass if run from the /apps/com/company/application directory
    • E、 java -classpath /apps/com/company/application:. MainClass if run from the /apps directory
    • F、 java com.company.application.MainClass if run from the /apps/com/company/application directory

    正确答案:B,C

  • 第7题:

    You work as a network Exchange administrator at Company.com.The Company.com network currently consists of a single Active Directory forest containing a single domain/ named Company.com.The functional level of the forest and domain are set at Windows Server 2003.The Company.com organization makes use of Microsoft Exchange Server 2003 Service Pack 2 (SP2) as their messaging solution.During the course of the business week you receive instruction from Company.com to start transitioning Exchange Server 2003 to Exchange Server 2010 whilst preparing the Active Directory environment for the deployment of Microsoft Exchange Server 2010.What should you do?()

    • A、You should consider having the setup.com /PrepareLegacyExchangePermissions command run.
    • B、You should consider having the setup.com /PrepareSchema command run.
    • C、You should consider having the setup.com /PrepareAD command run.
    • D、You should consider having the setup.com /PrepareDomain command run.

    正确答案:C

  • 第8题:

    单选题
    You are developing an application that dynamically loads assemblies from an application directory. You need to write a code segment that loads an assembly named Company1.dll into the current application domain. Which code segment should you use?()
    A

    A

    B

    B

    C

    C

    D

    D


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

  • 第9题:

    单选题
    During a boot, which of the following procedures is most likely to present a menu that prompts the user to copy a dump?()
    A

     Set the dump device to /dev/hd6. 

    B

     Run sysdumpdev to set the force copy flag for dump to true. 

    C

     Run sysdumpdev to set the force copy flag for dump to false. 

    D

     Increase space in the /tmp directory. 


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

  • 第10题:

    单选题
    package com.sun.sjcp; public class Commander{ public static void main(String[]args){ //more code here } } Assume that the class fileis located in /foo/com/sun/sjcp/,the current directory is/foo/,and that the classpath contains“.“(current directory). Which command line correctly runs Commander?()
    A

    java Commander

    B

    java com.sim.sjcp.Commander

    C

    java com/sun/sjcp/Commander

    D

    java-cpcom.sun.sjcp Commander

    E

    java-cpcom/sun/sjcp Commander


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

  • 第11题:

    单选题
    You work as a network Exchange administrator at Company.com.The Company.com network currently consists of a single Active Directory forest containing a single domain named Company.com.The Company.com organization makes use of Microsoft Exchange Server 2010 as their messaging solution.Company.com recently decided to investigate a user named Rory Allen.During the course of the business week you receive instruction from Company.com to have Rory Allen prevented from deleting the items permanently from his mailbox. What should you do?()
    A

    You should consider having the Set-Mailbox Rory Allen -RetainDeletedItemsUntilBackup $true command run.

    B

    You should consider having the Set-Mailbox Rory Allen -RetentionHoldEnabled $true command run.

    C

    You should consider having the Set-Mailbox Rory Allen -LitigationHoldEnabled $true command run.

    D

    You should consider having the Set-Mailbox Rory Allen -ModerationEnabled $true command run.


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

  • 第12题:

    多选题
    package com.company.application;  public class MainClass {  public static void main(String[] args) { }  }  And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to “.“ (current directory).  Which two java commands entered at the command line will run MainClass?()
    A

    java MainClass if run from the /apps directory

    B

    java com.company.application.MainClass if run from the /apps directory

    C

    java -classpath /apps com.company.application.MainClass if run from any directory

    D

    java -classpath . MainClass if run from the /apps/com/company/application directory

    E

    java -classpath /apps/com/company/application:. MainClass if run from the /apps directory

    F

    java com.company.application.MainClass if run from the /apps/com/company/application directory


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

  • 第13题:

    A class games.cards.Poker is correctly defined in the jar file Poker.jar.  A user wants to execute the main method of Poker on a UNIX system using the command:  java games.cards.Poker  What allows the user to do this?() 

    • A、 put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java
    • B、 put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/*.jar
    • C、 Put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/Poker.jar
    • D、 put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java
    • E、 put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuffijava/*.jar
    • F、 put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java/Poker.jar

    正确答案:C

  • 第14题:

    You are an enterprise administrator for Cer-tech .com. The corporate network of the company consists ofan Active Directory domain. All the servers on the network run Windows Server 2008. The network runs aTerminal server named Server02 to enable remote users to run commonly required applications from theirterminal. You have recently been asked to deploy a Terminal Services application called App1 on Server02. To deploy the application, you first confirmed from the application vendor that the applicationcan be deployed in a Terminal Services environment. The features of App1 are that it does not use Microsoft Windows Installer packages for installation and makes changes to the current user registry duringinstallation. Which of the following options would you choose to install the application to support multipleuser sessions?()

    • A、Run the change user /install command on Server02
    • B、Install the application
    • C、Run the change user /execute command on Server02
    • D、Run the change logon /disable command on Server02

    正确答案:A,B,C

  • 第15题:

    During a boot, which of the following procedures is most likely to present a menu that prompts the user to copy a dump?()

    • A、 Set the dump device to /dev/hd6. 
    • B、 Run sysdumpdev to set the force copy flag for dump to true. 
    • C、 Run sysdumpdev to set the force copy flag for dump to false. 
    • D、 Increase space in the /tmp directory. 

    正确答案:C

  • 第16题:

    A manufacturer is deploying a custom application to serve their customers.  The application is written to take advantage of multithreading features and run in a Windows environment.  To determine the processor family that will run the application most efficiently, which TWO questions will provide the required information?()

    • A、What is the application’s maximum processor scaling capability?
    • B、Will the application run faster with Microsoft OLTP technology?
    • C、Will the application benefit from larger disk cache and swap space?
    • D、Can the application use Hot Swap Processor, Memory, and PCI-X technology?
    • E、Is the application able to run in a 32 bit, 64 bit, or mixed environment?

    正确答案:A,E

  • 第17题:

    A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command: java games.cards.Poker What allows the user to do this?()

    • A、put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java
    • B、put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/*.jar
    • C、Put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/Poker.jar
    • D、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java
    • E、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/*.jar
    • F、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/Poker.jar

    正确答案:C

  • 第18题:

    Given a correctly compiled class whose source code is:  package com.sun.sjcp;  public class Commander {  public static void main(String[] args) {  // more code here  }  }  Assume that the class file is located in /foo/com/sun/sjcp/, the current directory is /foo/, and that the classpath contains “.“ (current directory). Which command line correctly runs Commander?() 

    • A、 java Commander
    • B、 java com. sim. sjcp.Commander
    • C、 java com/sun/sjcp/Commander
    • D、 java -cp com.sun.sjcp Commander
    • E、 java -cp com/sun/sjcp Commander

    正确答案:B

  • 第19题:

    Given the following directory structure: bigProject |--source | |--Utils.java | |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result? ()

    • A、If the compile is successful, Utils.class is added to the source directory.
    • B、The compiler returns an invalid flag error.
    • C、If the compile is successful, Utils.class is added to the classes directory.
    • D、If the compile is successful, Utils.class is added to the bigProject directory.

    正确答案:C

  • 第20题:

    单选题
    A file named "core" exists in the current directory.  Which of the following commands should be used to determine what created the "core" file?()
    A

     dump -t core 

    B

     strings core 

    C

     trace -a core 

    D

     crash core /unix_up


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

  • 第21题:

    单选题
    Given a correctly compiled class whose source code is:  package com.sun.sjcp;  public class Commander {  public static void main(String[] args) {  // more code here  }  }  Assume that the class file is located in /foo/com/sun/sjcp/, the current directory is /foo/, and that the classpath contains “.“ (current directory). Which command line correctly runs Commander?()
    A

     java Commander

    B

     java com. sim. sjcp.Commander

    C

     java com/sun/sjcp/Commander

    D

     java -cp com.sun.sjcp Commander

    E

     java -cp com/sun/sjcp Commander


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

  • 第22题:

    多选题
    package com.company.application; public class MainClass{ public static void main(String[]args){} } And Main Class exists in the/apps/com/company/application directory.Assume the CLASSPATH environment variable is set to“.”(currentdirectory).Which two java commands entered at the command line will run MainClass()
    A

    java MainClass if run from the/apps directory

    B

    javacom.company.application.MainClass if run from the/apps directory

    C

    java-classpath/appscom.company.application.MainClass if run fro many directory

    D

    java-classpath.MainClass if run fromt he/apps/com/company/application directory

    E

    java-classpath/apps/com/company/application:.MainClass if run from the/apps directory

    F

    javacom.company.application.MainClassifrunfromthe/apps/com/company/application directory


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

  • 第23题:

    多选题
    A manufacturer is deploying a custom application to serve their customers.  The application is written to take advantage of multithreading features and run in a Windows environment.  To determine the processor family that will run the application most efficiently, which TWO questions will provide the required information?()
    A

    What is the application’s maximum processor scaling capability?

    B

    Will the application run faster with Microsoft OLTP technology?

    C

    Will the application benefit from larger disk cache and swap space?

    D

    Can the application use Hot Swap Processor, Memory, and PCI-X technology?

    E

    Is the application able to run in a 32 bit, 64 bit, or mixed environment?


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