Syntax for declaring a 3D array in java code example Example: two dimensional array in java example program int[][] a = new int[3][4];