What is the default implementation of equals method in Object class?

Shallow comparison: The default implementation of equals method is defined in Java. lang. Object class which simply checks if two Object references (say x and y) refer to the same Object. i.e. It checks if x == y.11 Eki 2019

Sizin İçin Seçtik  What are the three methods of object class in Java?

Leave a Reply

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