What is an equals method?

Equals method checks to make sure that the obj argument is not null and that it references an instance of the same type as this object . If either check fails, the method returns false . The Point. Equals method calls the GetType method to determine whether the run-time types of the two objects are identical.

Sizin İçin Seçtik  How you define a class in Java?

Leave a Reply

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