Java, Spring, Microservices, Interview, Coding.
add method works? Before going into internal implementation of HashSet in Java it is important to know two points about HashSet. HashSet in Java only stores unique values i.e. no duplicates are allowed. HashSet works on the concept of hashing just like HashMap in Java but its working differs from