Review questions - question number -23
I thought option f is also correct because the option tells the name of the .class which is similar to option d.
But when I saw answer it made me confuse because they used the word extension but in option f they did not include extension they just told name of the .class
Or am I over thinking 😬😬??
Is that the book by Jeanne Boyarsky and Scott Selikoff? Thank you for giving us the question number, but for those of us who don't have the book please copy the question. I can only answer your query if I know what the book says.
posted 1 year ago
Question--> 23. 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.
book explanation---> C, D. 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.