What is Dictionary class
Dictionary is abstract class and it represents key/value storage repository. It is same as Map where . By supplying a key and value, we can store the value in a Dictionary. Once value is stored we can retrieve it by using key. Although it is not currently deprecated, Dictionary classified as obsolete, because it is fully superseded by Map.
However, Dictionary could still be used and inJDK 5, Dictionary was made generic. It can be declared as below:
Please see java example of dictionary below:
Check out all interview questions