nerdexam
Oracle

1Z0-815 · Question #10

Given: executed with this command: java Main one two three What is the result?

The correct answer is D. It creates an infinite loop printing. See the full explanation below for the reasoning.

Question

Given:

executed with this command:

java Main one two three What is the result?

Exhibit

1Z0-815 question #10 exhibit

Options

  • A0). one
  • B0). one
  • CThe compilation fails.
  • DIt creates an infinite loop printing:
  • EA java.lang.NullPointerException is thrown.

How the community answered

(57 responses)
  • A
    2% (1)
  • B
    14% (8)
  • C
    7% (4)
  • D
    74% (42)
  • E
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice