JAVA Exceptions Which exception is thrown when an array element is accessed beyond the array size? ArrayIndexOutOfBounds ArrayElementOutOfBounds ArrayIndexOutOfBoundsException None of these ArrayIndexOutOfBounds ArrayElementOutOfBounds ArrayIndexOutOfBoundsException None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Predict the output:public class Test{ public static void main(String args[]){ try{ String arr[] = new String[10]; arr = null; arr[0] = "one"; System.out.print(arr[0]); }catch(Exception ex){ System.out.print("exception"); }catch(NullPointerException nex){ System.out.print("null pointer exception"); } }} None of these Compilation fails saying NullPointerException has already been caught. "one" is printed. "null pointer exception" is printed. "exception" is printed. None of these Compilation fails saying NullPointerException has already been caught. "one" is printed. "null pointer exception" is printed. "exception" is printed. ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions What happen in case of multiple catch blocks? Either super or subclass can be caught first. None of these The superclass exception cannot caught first. The superclass exception must be caught first. Either super or subclass can be caught first. None of these The superclass exception cannot caught first. The superclass exception must be caught first. ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which of the following blocks execute compulsorily whether exception is caught or not. finally throw catch throws finally throw catch throws ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Exception generated in try block is caught in ........... block. catch throw finally throws catch throw finally throws ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which keyword is used to explicitly throw an exception? throwing throw try catch throwing throw try catch ANSWER DOWNLOAD EXAMIANS APP