(6-9)定义了如下Person类,下面()程序段能够正确初始化Person数组。class Person{private String name;public Person(String name){this.name=name;}}
A. Person [ ] list=new Person[ ]{new Person("孙悟空"),new Person("猪八戒")};
B. Person list[ ]=new Person[ ]{new Person("孙悟空"),new Person("猪八戒")};
C. Person[ ] list={new Person("孙悟空"),new Person("猪八戒")};
D. Person list=new Person[ ]{new Person("孙悟空"),new Person("猪八戒")};