What is difference between these two array declarations?

前端 未结 5 1999
自闭症患者
自闭症患者 2021-01-11 21:05

It seems these two declarations are the same:

int[] array1 = {11, 22, 33};

and

int[] array2 = new int[] {11, 22, 33};
         


        
5条回答
提交回复
热议问题