equals(Object obj) is the method of Object class . This method is used to compare the given objects. It is suggested to override equals(Object obj) method to get our own equality condition on Objects.
equals(Object obj) is the method of Object class . This method is used to compare the given objects. It is suggested to override equals(Object obj) method to get our own equality condition on Objects.