Multiple choice

Which of the following methods of the dictionary class in collection framework returns the value to which the key is mapped in the dictionary?

  1. abstract V get(Object key)

  2. abstract V put(K key, V value)

  3. abstract Enumeration<k> keys() </k>

  4. abstract int size()

  5. none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Yes, this method is used to return the value to which the key is mapped in the dictionary.