JAVA Exceptions
Which exception is thrown when an array element is accessed beyond the array size?

ArrayIndexOutOfBounds
ArrayElementOutOfBounds
None of these
ArrayIndexOutOfBoundsException

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.
Compilation fails saying NullPointerException has already been caught.
None of these
"null pointer exception" is printed.
"one" is printed.

ANSWER DOWNLOAD EXAMIANS APP