java 2d array we we have to declare both size? code example Example: How to create a 2d array in java int[][] arr = new int[m][n];