Without Book Ask Question
Question. equals vs hasCode implementation
- What is equals and hashCode overriding?
Why and when should we override these methods?
If we do not override what will happen?
If we override only equals what will happen?
And if we override only hashCode what will happen?
Posted At Jul 20, 2014 Posted By Raj Mohan