1.

What will be the output of the program?

public class Test { private static int[] x; public static void main(String[] args) { System.out.println(x[0]); } }

A. 0
B. null
C. Compile Error
D. <i class="java-code">NullPointerException</i>
E. at runtime
Answer» E. at runtime


Discussion

No Comment Found

Related MCQs