Oracle
1Z0-815 · Question #27
Given: executed with this command: java Main one two three What is the output of this class?
The correct answer is B. 1) one. See the full explanation below for the reasoning.
Question
Given:
executed with this command:
java Main one two three What is the output of this class?
Exhibit
Options
- AThe compilation fails.
- B
- one
- CA java.lang.ArrayIndexOutOfBoundsException is thrown.
- D
- one
- Enothing
How the community answered
(18 responses)- A17% (3)
- B72% (13)
- D6% (1)
- E6% (1)
Community Discussion
No community discussion yet for this question.
