Which two are true about the java and javac commands?

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

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

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.

C.
java -classpath will print the classpath used by the JVM.

D.
javac -version will print the OS version for the machine on which the JDK is installed.

E.
javac -D lets you specify the destination directory for the compiled class files.



Leave a Reply 0

Your email address will not be published. Required fields are marked *