Home » #hashmap

#hashmap

Collection

51 What is a weak HashMap?An implementation of the map interface, which includes only weak references to the keys. This allows garbage collection when the key is no longer referenced outside of the Map. 52. Why concurrentHashMap is not used over HashMap?This is because it doesn’t perform well in a multithreaded environment. 53. How to […]

Collection Read More »

Collection

21. What is Random Access Interface?RandomAccess, like the Serializable and Cloneable interfaces, is a marker interface. There are no methods defined in any of these marker interfaces. Rather, they designate a class as having a specific capability. The RandomAccess interface indicates whether or not a given java.util.List implementation supports random access. This interface seeks to define

Collection Read More »

Scroll to Top