Saw the code snippet like
Set instances = new HashSet();
I am wondering if Hashset is a special kind of set. A
Set is the general interface to a set-like collection, while HashSet is a specific implementation of the Set interface (which uses hash codes, hence the name).