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 / aruna kadaari

By using the below statment we can stnchronize the hashmap


Hashmap hm = new Hashmap();
Map m = Collections.synchronizedMap(hm);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is adapter in java?

920


What does microservices mean?

949


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1240


Which is easier netbeans or eclipse?

1058


What is break and continue statement?

1092


What is jrmp?

968


How to optimize the javac output?

1021


Explain what are final variable in java?

1065


Define jre i.e. Java runtime environment?

1007


What are the differences between forwarding () method and sendredirect() methods?

1106


What is variable length arguments in java?

970


What is passing parameters in java?

1039


What are the fileinputstream and fileoutputstream?

1065


Is string a datatype?

984


Is intellij better than eclipse?

1088