多选题

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 from the /apps directory

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

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

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

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

正确答案

来源:www.examk.com

答案解析

相似试题
  • Given the command line java Pass2 and: What is the result? ()

    单选题查看答案

  • Assuming that the serializeBanana() and the deserializeBanana() methods will correctly use Javaserialization and given: What is the result?()

    单选题查看答案

  • Given that the current directory is empty, and that the user has read and write permissions, and thefollowing: Which statement is true?()

    单选题查看答案

  • Given: What creates the appropriate DateFormat object and adds a day to the Date object?()

    单选题查看答案

  • Given: and two separate command line invocations: java Yippee java Yippee 1 2 3 4 What is the result?()

    单选题查看答案

  • Given that the elements of a PriorityQueue are ordered according to natural ordering,and: What is the result?()

    单选题查看答案

  • Given that the current directory is empty, and that the user has read and write privileges to the currentdirectory, and the following: Which statement is true?()

    单选题查看答案

  • Given: A programmer iterates over the TreeSet and prints the name of each Drink object. What is the result?()

    单选题查看答案

  • Given: Which statement is true about the objects referenced by snoog, snooch, and booch immediately after line23 executes?()

    单选题查看答案

  • Given: 1.package test; 2. 3.class Target { 4.public String name = "hello";5.} What can directly access and change the value of the variable name?()

    单选题查看答案