Exception Handling
© examsiri.com
Question : 11 of 24
Marks:
+1,
-0
Given:
Which exception or error will be thrown when a programmer attempts to run this code?
1. public class Foo {
2.   static int[] a;
3.   static { a[0]=2; }
4.   public static void main( String[] args ) {}
5. }Which exception or error will be thrown when a programmer attempts to run this code?
Go to Question: