- ~
关于以下程序的描述哪一个是正确的?( )java
public class Person{ static int arr[] = new int[5]; public static void main(String a[]){ System.out.println(arr[0]); } }
正确答案: C 你的答案: B (错误)
编译将产生错误
编译时正确,但运行时将产生错误
正确,输出0
正确,输出 nullcode
char[] ch = new char[3];//默认空格 int [] Int = new int[2];//默认0 String[] strings = new String[2];//默认null double data3[]=new double[5];//默认0.0