Oracle
1Z0-815 · Question #77
Given: What is the expected result of javac?
The correct answer is D. javac fails to compile the class and prints the error message, Error: Could not find or load main. See the full explanation below for the reasoning.
Question
Given:
What is the expected result of javac?
Exhibit
Options
- Ajavac fails to compile the class and prints the error message, C:\workspace4 \Mycar.java:1:error:
- Bjavac compiles Mycar.java without errors or warnings.
- Cjavac fails to compile the class and prints the error message, C:\workspace4 \Mycar.java:1:error:
- Djavac fails to compile the class and prints the error message, Error: Could not find or load main
How the community answered
(66 responses)- A3% (2)
- B5% (3)
- C9% (6)
- D83% (55)
Community Discussion
No community discussion yet for this question.
