xxxxxxxxxx
Categories LinkedHashMap LinkedHashSet
Operation Usd to store key-value pairs. Used to store collection of things
Duplicates Take unique an no duplicate keys but can takeduplicate values Stores no duplicate element
Implements HashMap HashSet
Example Map<String, Integer> lhm = new LinkedHashMap<String, Integer>(); Set<String> lhs = new LinkedhashSet<String>();
xxxxxxxxxx
- LinkedHashSet can have null and keeps the order
- LinkedHashMap can have only one null key, keeps order