I was just curious to know - why does Arrays.equals(double[][], double[][]) return false? when in fact the arrays have the same number of elements and each element is the sa
java does not actually have multidimensional arrays. Instead it has only single dimensional array and the multi d arrays will be arrays of this 1d arrays . String.equals() can be only performed to the basic , single block arrays and hence it doesn't work for multidimensional arrrays.