Developers often get into dilemma when they have to convert the object to string representation by choosing between valueOf() and toString() method. Because both the methods do the same thing but in a bit different ways. To give you more context, toString() method is present in Object class and generally overridden in the derived class […]

,

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, […]

, ,