JAVA Exceptions What happen in case of multiple catch blocks? None of these Either super or subclass can be caught first. The superclass exception must be caught first. The superclass exception cannot caught first. None of these Either super or subclass can be caught first. The superclass exception must be caught first. The superclass exception cannot caught first. 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"); } }} "exception" is printed. "one" is printed. Compilation fails saying NullPointerException has already been caught. "null pointer exception" is printed. None of these "exception" is printed. "one" is printed. Compilation fails saying NullPointerException has already been caught. "null pointer exception" is printed. None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which of the following blocks execute compulsorily whether exception is caught or not. throws catch throw finally throws catch throw finally ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which keyword is used to explicitly throw an exception? catch throw try throwing catch throw try throwing ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions In which of the following package Exception class exist? java.lang java.util java.io java.file java.net java.lang java.util java.io java.file java.net ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which exception is thrown when an array element is accessed beyond the array size? None of these ArrayIndexOutOfBoundsException ArrayIndexOutOfBounds ArrayElementOutOfBounds None of these ArrayIndexOutOfBoundsException ArrayIndexOutOfBounds ArrayElementOutOfBounds ANSWER DOWNLOAD EXAMIANS APP