Question
Which of the following are true? (Choose all that apply)
- A. javac compiles a .class file into a .java file.
- B. javac compiles a .java file into a .bytecode file.
- C. javac compiles a .java file into a .class file.
- D. Java takes the name of the class as a parameter.
- E. Java takes the name of the .bytecode file as a parameter.
- F. Java takes the name of the .class file as a parameter.
C, D.
Note
Java puts source code in .java files and bytecode in .class files.
It does not use a .bytecode file.
When running a Java program, you pass just the name of the class without the .class extension.
PreviousNextRelated