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 best practices should you follow while writing multithreaded code in java?

1038


What is user defined exception in Java?

1060


What is procedure writing?

957


What is Gang of four design patterns

1045


How a string is stored in memory?

995


What are the different collection views provided by maps?

978


Which variables are stored in stack?

885


How much is a java license?

907


Can we sort arraylist in java?

971


Is java owned by oracle?

996


What is a numeric format?

1072


List out five keywords related to exception handling ?

1001


What is a ternary operator in java?

970


What is a stack class in java ?

1092


What is meant by 'bit masking' in java?

1172