WHAT IS THE DIFFERENCE BETWEEN HASHMAP AND HASHTABLE?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 635  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is the difference between HashMap and Hashtable?

    HashMap
    1)HashMap is not synchronized.
    2)HashMap can contain one null key and multiple null values.

    Hashtable
    1)Hashtable is synchronized.
    2)Hashtable cannot contain any null key or null value.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!