Engineering Full Stack Apps with Java and JavaScript
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