As I have mention in my previous post that hashCode() and eqauls() implementation are basic concepts of Java and any developer should know about these while using Collection classes. These are important concepts and even asked in technical interviews. When equals() method is implemented it is also necessary to implement hashCode() method. In this post, […]

, ,

There are two methods hashCode() and equals() present in Object class which are important and should be implemented in class. A Java developer should know the basic concept behind these methods. And sometimes even in technical interview questions are asked related to these. This get more important when object is used in hash based Collection […]

, , ,