Multiple choice

Which of the following is/are the properties of Hashtable in collection in java?

  1. It is used to store and retrieve the value using the specified key.

  2. Hashtable is synchronized.

  3. It does not allow null keys or values.

  4. All of the above

  5. Only (1) and (2)

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

Yes, all the above three statements are true about the Hashtable in java.