Equals() Method in Java – Object Class
In this article we will continue to explain the remaining 10 methods of Object class in java.lang package. equals(Object o) Prototype of this method is public boolean equals(Object o) We use Equals() method in order to check the equality of any 2 objects. Method equals() is meant for reference comparison or address comparison, and when …