below is my java program. Please tell me why i am getting the size of hashset as 2 instead of 1 as i have overridden the equals and hashcode method.


import java.util.HashSet;
import...