Hi,
The above code compares the two different object to see whether they are same and not the content of the objects. And since object a and b are two different objects equals method will return false.
But the method Arrays.equals will compare the content of two arrays to see whether they are same. Here the element of array a is {1} and element of array be is also {1} so it return output as true.