public class Objects extends Object
public static boolean equals(Object a, Object b)
true if the arguments are equal to each other
and false otherwise.
Consequently, if both arguments are null, true
is returned and if exactly one argument is null, false is returned. Otherwise, equality is determined by using
the equals method of the first
argument.a - an objectb - an object to be compared with a for equalitytrue if the arguments are equal to each other
and false otherwiseObject.equals(Object)Copyright © 2025. All Rights Reserved.