Tuesday, November 29, 2011

How hashtable is synchronized?why hashmap is not synchronized?Can we make hashmap synchronized?

Hashtable and HashMap both are Key Value pairs and they function both the same way except in sychronization and HashMap accepts one null Key and many null values. :HashMap is bydefault not synchronized. To synchronize the Hash Map using synchronizeMap()
Category:Java Interview Questions

No comments:

Post a Comment