JAVA Exceptions Which exception is thrown when an array element is accessed beyond the array size? None of these ArrayElementOutOfBounds ArrayIndexOutOfBoundsException ArrayIndexOutOfBounds None of these ArrayElementOutOfBounds ArrayIndexOutOfBoundsException ArrayIndexOutOfBounds ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Given the code. What is the result when this program is executed?public class Test{ static int x[]; static{ x[0] = 1; } public static void main(String args[]){ }} ArrayIndexOutOfBoundsException is thrown None of these ExceptionInInitializerError is thrown StackOverflowException is thrown IllegalStateException is thrown ArrayIndexOutOfBoundsException is thrown None of these ExceptionInInitializerError is thrown StackOverflowException is thrown IllegalStateException is thrown ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Exception generated in try block is caught in ........... block. finally throws throw catch finally throws throw catch ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions What happen in case of multiple catch blocks? Either super or subclass can be caught first. The superclass exception cannot caught first. The superclass exception must be caught first. None of these Either super or subclass can be caught first. The superclass exception cannot caught first. The superclass exception must be caught first. None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions public class Test{ public static void main(String args[]){ try{ int a = Integer.parseInt("four"); } }}Which exception could be handled by the catch block for above? IllegalStateException ArrayIndexOutOfBoundsException NumberFormatException ClassCastException None of these IllegalStateException ArrayIndexOutOfBoundsException NumberFormatException ClassCastException None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which keyword is used to specify the exception thrown by method? catch finally throws throw catch finally throws throw ANSWER DOWNLOAD EXAMIANS APP