difference between equals() and hashCode()
The equals() and hashCode() methods prove to be very important, when objects implementing these two methods are added to collections. If implemented incorrectly it might screwed up your life. equals() : This method checks if some other object passed to it as an argument is equal the object in which this method is invoked. It is easy to implement the … Read more