Question
Which of the following is a true statement?
- A. The java command compiles a .java file into a .class file.
- B. The javac command compiles a .java file into a .class file.
- C. The java command compiles a .class file into a .java file.
- D. The javac command compiles a .class file into a .java file.
B.
Note
The javac command compiles a .java file into a .class byte-code file, making Option B the correct answer.
PreviousNextRelated