nerdexam
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

1Z0-815 question #77 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)
  • A
    3% (2)
  • B
    5% (3)
  • C
    9% (6)
  • D
    83% (55)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice