How HashMap internally works in Java Add Comment Edit Hash Map is one of the most used collection, though it will be surprising to know that maps themselves are not collections because they do... Read More
keyset() vs entrySet() in map Add Comment Edit The entrySet() method is used to get a Set view of the mappings contained in this map. The keySet() method is used to get a Set view of... Read More
Internal Implementation Of Set/HashSet Add Comment Edit Each and every element in the set is unique . So that there is no duplicate element in set . So in java if we want to add elements in th... Read More