ITC Infotech Interview Question

How to avoid adding duplicate objects to a set?

Interview Answer

Anonymous

Dec 12, 2018

By overriding equals and hasCode method