What is difference between these two array declarations?

Viewed 417

It seems these two declarations are the same:

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

and

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

But what is the need of this part new int[] in the second sample?
Does it make difference?

5 Answers
Related