I am learning Java collection framework in Java, and got fair idea of various Classes and interfaces.
While going through Set
interface, one of the implementations is HashSet
(among others).
I am not able to understand what is the logic of implementing Set
based on the Hash
, what advantage does it serve?
Can anyone help me understand what is the need of Hash based implementation of Set in Java Collection Framework?