Check out example codes for "Java array nested equals". It will help you in understanding the concepts better.
Code Example 1
int[][] a = new int[][] {{1}, {2}, {3, 4}};
int[][] b = new int[][] {{1}, {2}, {3, 4}};
int[][] c = new int[][] {{1}, {2}, {3}, {4}};
java.util.Arrays.deepEquals(a, b) // true
java.util.Arrays.deepEquals(b, c) // false
Learn ReactJs, React Native from akashmittal.com