以下程序代码能否通过编译,如果通过编译,运行“ java Sample ”时会出现什么情况
01: public class Sample{
03: String array[] = new String[3];
05: private void test();
11: }
12: }
01: public class Sample{
03: String array[] = new String[3];
05: private void test();
11: }
12: }
A.编译时出错:变量array可能没有被初始化
B.运行时出错:变量array[0]可能没有被初始化
C.运行时出错:第6行抛出jA.lang.NullPointerException
D.运行时打印“Value is: null”。