nerdexam
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

1Z0-815 question #27 exhibit

Options

  • AThe compilation fails.
  • B
    1. one
  • CA java.lang.ArrayIndexOutOfBoundsException is thrown.
  • D
    1. one
  • Enothing

How the community answered

(18 responses)
  • A
    17% (3)
  • B
    72% (13)
  • D
    6% (1)
  • E
    6% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice