以下数组定义中不正确的是( )
A. int[]num = new int[]
B. int[]num = new int[]{1,2,3,4,5}
C. int num[] = {1,2,3,4,5}
D. int[]num = {1,2,3,4,5}
有如下Java代码,运行输出的结果为()public static void main(String[]args){int []a={1,2,3,4,5,6,7};int temp;for(int i=0;i
A. 1,2,3,4,5,6,7
B. 2,3,4,1,6,7,5
C. 7,6,5,4,3,2,1
D. 7,2,5,4,3,6,1