Check out example codes for "Java array equals". It will help you in understanding the concepts better.

Code Example 1

java.util.Arrays.equals(a, b) // narrow equals (values are compared with == and value.equals)
java.util.Arrays.deepEquals(a, b) // deep equals (recursively looks at nested arrays)

Learn ReactJs, React Native from akashmittal.com