Which is true about HashMap and Hashtable?

  1. Both HashMap and Hashtable will allow null as key and value.

  2. HashMap is not Synchronized and Hashtable is Synchronized.

  3. The iterator in the HashMap is fail-safe, but enumerator for the Hashtable is not fail-safe.

  4. Hashtable will be faster than HashMap.


Correct Option: B,C

Find more quizzes: