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 to synchonise HashMap

Answer Posted / srinu

This is method for synchronise HashMap
Map m1=Collections.synchronizedMap(Map m)

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does arraylist size increase in java?

1061


What is an interface in java?

1017


In a container there are 5 components. I want to display the all the components names, how will you do that one?

1003


What is the main function in java?

1022


What is the use of predicate in java 8?

906


Explain a situation where finally block will not be executed?

980


How do I remove a character from a string in java?

933


Can we call a non-static method from inside a static method?

967


Can you use this() and super() both in a constructor?

945


Why we use methods in java?

944


What is the purpose of the file class in java programming?

973


How do you sort data in java?

910


What is difference between static class and singleton pattern?

974


Are arrays dynamic in java?

994


How hashmap works in java?

1020