adplus-dvertising
frame-decoration

Question

Which is the exception or error that is thrown if a non-existing command-line argument is referred to in a Java program?

a.

StackOverflowError

b.

IndexOutOfBoundsException

c.

ArrayIndexOutOfBoundsException

d.

ArithmeticException

Posted under Java Programming

Answer: (c).ArrayIndexOutOfBoundsException

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which is the exception or error that is thrown if a non-existing command-line argument is referred to in a Java program?