What are the differences between a HashMap and a Hashtable in Java?
Which is more efficient for non-threaded applications?
HashMap: It is a class available inside java.util package and it is used to store the element in key and value format.
Hashtable: It is a legacy class which is being recognized inside collection framework.