nerdexam
Oracle

1Z0-850 · Question #26

Which two are true about the java and javac commands? (Choose two.)

The correct answer is A. java -classpath lets you specify one or more directories to be used by the JVM to locate class files. B. java -version will print the version of the JVM. See the full explanation below for the reasoning.

Question

Which two are true about the java and javac commands? (Choose two.)

Options

  • Ajava -classpath lets you specify one or more directories to be used by the JVM to locate class files.
  • Bjava -version will print the version of the JVM.
  • Cjavac -classpath will print the classpath used by the JVM.
  • Djavac -version will print the OS version for the machine on which the JDK is installed.
  • Ejavac -D lets you specify the destination directory for the compiled class files.

How the community answered

(25 responses)
  • A
    76% (19)
  • C
    4% (1)
  • D
    12% (3)
  • E
    8% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-850 Practice