0

While initializing an array by

int [][] mat = new int [3][3]

OR by

int mat[][] = new int [3][3]

there is no change.

Why it does not make any difference ? is it just Java style to give freedom to a developer or is there any internal functionality change based on how you initialize an 2d array or even a normal array. The question may be very silly but still I want to know about it.

Emz
  • 1,280
  • 1
  • 14
  • 26
Abhimanyu
  • 878
  • 6
  • 11

0 Answers0