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
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)- A2% (1)
- B14% (8)
- C7% (4)
- D74% (42)
- E4% (2)
Community Discussion
No community discussion yet for this question.
