True or False

Quiz Guidelines

 

QID: 
420
Question: 

The following class will not throw a NullPointerException when compiled and run.

class Test{
public static void main(String[] args) throws Exception{
int[] a = null;
int i = a [ m1() ];
}
public static int m1() throws Exception{
throw new Exception("Some Exception");
}
}

Select 1 option

A. True
B. False

Q&A Set: