When comparing arrays in Java, are there any differences between the following 2 statements?

Object[] array1, array2;
array1.equals(array2);
Arrays.equals(array1, array2);

And if so, what are they?

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *