Java Programming - Objects and Collections - Discussion

5. 

Which interface does java.util.Hashtable implement?

[A]. Java.util.Map
[B]. Java.util.List
[C]. Java.util.HashTable
[D]. Java.util.Collection

Answer: Option A

Explanation:

Hash table based implementation of the Map interface.


Annepaka Gopi said: (Feb 3, 2014)  
As per my knowledge.

Hashset also depends on hashTable structure right ? then may be D also right no ? Since it comes under java.util.Collection.

Thank you.

Mac said: (May 10, 2015)  
No no HashTable is a key-pair combination and Map too but whole java.util.Collection is not.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.