I have seen internal data structure used by hashset is HashTable on many websites but when i saw HashSet.class (after decompile) it is using HashMap.Now iam confused please clear my confusion.HashSet uses which data structure ?
Also tell me internal data structure used by linkedhashset, treeset, hashmap, hashtable, linkedhashmap, treemap.
HashSetis backed by aHashMap. The Javadoc even says so. You should peruse the Javadoc for these classes; it would answer most of these questions.