Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can you say HashMap is syncronized?

Answer Posted / kishore

HashMap is not synchronized.
If u want to synchronized we have to do
HashMap map=java.util.Collections.synchronizedMap(new
HashMap());
Hash Map permits Key and values are Null.

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe different states of a thread.

991


How can you add and remove nodes in jtree?

1023


What is a vector in java?

1011


What is contract between hashcode and equal method?

1020


Are static members inherited to sub classes?

1119


What about main() method in java ?

1009


What is generics in java interview questions?

1046


What is the collection interface?

1010


What is a boolean field?

942


What is not thread safe?

965


How will you call an Applet using Java Script Function?

1013


What is the use of volatile in java?

1038


Why does abstract class have constructor?

985


How to make a non daemon thread as daemon?

1047


Explain covariant method overriding in java.

1085