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?

Answers were Sorted based on User's Feedback



How can you say HashMap is syncronized?..

Answer / zohaib

if hashtable is syncronized then can any one tell me what
is the need of making hashtable syncronized tell me with
respect to application usage.

Is This Answer Correct ?    1 Yes 1 No

How can you say HashMap is syncronized?..

Answer / 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

How can you say HashMap is syncronized?..

Answer / reddy edagottu

hasmap is syncronized why because if hashmap is processing
by one thread another thread will wait till the thread
comeout which currently processing after than only next
thread process the hashmap

Is This Answer Correct ?    2 Yes 9 No

How can you say HashMap is syncronized?..

Answer / reddy edagottu

HashMap is a collection class which is a syncronized class
why because if one thread is processing one process another
thread will wait for when running thread will comeout after
then only next thread will enter into that process that's
why it is syncronized

Is This Answer Correct ?    3 Yes 12 No

Post New Answer

More Core Java Interview Questions

What are different data types?

0 Answers  


what is an objects lock and which objects have locks? : Java thread

0 Answers  


how can i use a nonsynchronized hashtable?

0 Answers   CoreObjects,


What are the three parts of a lambda expression? What is the type of lambda expression?

0 Answers  


What is mean by collections in java?

0 Answers  


Features of JAVA ? In which version of java synchronizedXXX() methods are included in Collections class.

1 Answers   NIIT,


Can a static method be overridden in java?

0 Answers  


Question 6 [9] 6.1 In what situations (in general) would you use a TreeMap? (3) 6.2 In what situations (in general) would you use a HashSet to store a collection of values?

1 Answers  


What is finalize()?

0 Answers  


What do you mean by boolean?

0 Answers  


Explain about arraylist?

0 Answers  


What is a package in java? List down various advantages of packages.

0 Answers  


Categories