All About Class Dictionary in Java

The Dictionary class is the abstract parent of any class which maps keys to values like Hashtable. Any key needs to be non null object and corresponding value also needs to be non null.

The class Dictionary is described as below:

public static class java.util.Dictionary extends java.lang.Object{
public Dictionary();//Creates a new Dictionary object.
public abstract Enumeration elements();
public abstract Enumeration keys();
public abstract Object get(Object key);
public abstract boolean isEmpty();
public abstract Object put(Object key,Object value);
public abstract Object remove(Object key);
public abstract int size();
All About Class Dictionary in Java All About Class Dictionary in Java Reviewed by Animesh Chatterjee on September 26, 2018 Rating: 5

No comments:

Powered by Blogger.