首页题库练习题目详情
Java语言程序设计单选题中等

以下数组初始化方式中,正确的是哪一个?

Aint[] arr = {1,2,3};
Bint arr[] = new int[3];
Cint[] arr = new int[]{1,2,3};
Dint arr[3] = {1,2,3};