Java OCA OCP Practice Question 1373

Question

Which of the following are true statements?

Choose two.

  • A. The javac command compiles a source text file into a set of machine instructions.
  • B. The java command compiles a .class file into a .java file.
  • C. The javac command compiles a .java file into a .class file.
  • D. The javac command compiles a source text file into a byte code file.
  • E. The java command compiles a .java file into a .class file.
  • F. The javac command compiles a .class file into a .java file.


C, D.

Note

The javac command compiles a .java file into a .class byte code file.

Option C is a correct answer.

Options B, E, and F are incorrect.

The javac command compiles to a set of java instructions, or byte code, not machine instructions, making Option A incorrect and Option D correct.




PreviousNext

Related