Java does not have real 2D arrays. With a declaration that you have above, what you are really declaring is an array of which the elements are arrays that contain integers. The preferred syntax in Java is to put the angle brackets after the type instead of the variable name:
It is not possible to override the equals method or any other method for arrays. When you want to compare the content of two arrays, you can use one of the Arrays.equals() methods (java.util.Arrays is a class that contains utility methods for working with arrays).