Java Interview Questions & Answers part 8
Q: – What is an EntrySet View?
Entry Set view is a set that is returned by the entrySet() method in the map and contains Objects of type Map.
The Dictionary class is the abstract super class of Hashtable and Properties class.Dictionary provides the abstarct functions used to store and retrieve objects by key value. This class allows any object to be used as a key or value.
Q: – What is the Hashtable class?
The Hashtable class implements a hash table data structure. A hash table indexes and stores objects in a dictionary using hash codes as the objects' keys.
KeySet is a set returned by the keySet() method of the Map Interface, It is a set that contains all the keys present in the Map.
Submitted By:-Ankur Jain Email-ID: – email@example.com