Quiz on Java Hashtable putAll Method



1. What does the putAll() method in Hashtable do?
2. Which interface does the Hashtable class implement?
3. What will happen if a null key is passed to the putAll() method?
4. Can the putAll() method be used to merge two Hashtables?
5. Which of the following classes directly extends Hashtable?

Advertisements