Examveda

Which of the following is the correct way to declare a 3D array in Java?

A. int[][][] array = new int[3][3][3];

B. int array[][][] = new int[3][3][3];

C. int array[3][3][3];

D. int[] array = new int[3][3][3];

Answer: Option B


This Question Belongs to Data Structure >> Arrays In Data Structures

Join The Discussion

Related Questions on Arrays in Data Structures