Is equal method in Object class?

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.

Sizin İçin Seçtik  How do you check if a char is equal to another char in Java?

Leave a Reply

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