JAVA Exceptions
What happen in case of multiple catch blocks?

The superclass exception must be caught first.
None of these
The superclass exception cannot caught first.
Either super or subclass can be 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"); } }}

"one" is printed.
None of these
"exception" is printed.
"null pointer exception" is printed.
Compilation fails saying NullPointerException has already been caught.

ANSWER DOWNLOAD EXAMIANS APP