What is the output of this class?

Given:

executed with this command:
java Main one two three
What is the output of this class?
A. The compilation fails.
B. 1) one
2) two
3) three
C. A java.lang.ArrayIndexOutOfBoundsException is thrown.
D. 1) one
E. nothing

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “What is the output of this class?

    1. It states to run with arguments:

      executed with this command:
      java Main one two three

      B is correct.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.