Prev Question
Next Question

Given: What is the output?

A.
Error in thread “main” java.lang. ArrayIndexOutOfBoundseror

B.
Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 4 at
Main.doSomething(Main.java:12) at Main.main(Main.java:4)

C.
SpecialException: Thrown at end of doSomething() method

D.
SpecialException: Thrown at end of doSomething() method at
Main.doSomethingElse(Main.java:16) at Main.doSomething(Main.java:13) at
Main.main(Main.java:4)

Prev Question
Next Question

Leave a Reply

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