50. What will be the output of the following code?

1 public class X {
2 public static void main(String[] args) {
3 int[] a=new int[1];
4 modify(a);
5 System.out.println(a[0]);
6 }
7 public static void modify(int[] a){
8 a[0]++;}
9 }

Select 1 correct answer:
A. The program runs and prints 0.
B. The program runs and prints 1.
C. The program runs but aborts with an exception.
D. An error "possible undefined variable" at line 4 
   causes compilation to fail;
E. An error "possible undefined variable" at line 8 
   causes compilation to fail;