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 is size_t?

0 Answers  


Name the method that used to clear the buffer ?

2 Answers  


why String class is immutable.

5 Answers   iGate,


If your team member writes code with lots of static variables and static methods, will it cause any side effects?

3 Answers   KPIT,


Why are there no global variables in java?

0 Answers  






Java run-time system generates What class of exceptions?

2 Answers   TCS,


What is meant by constructor?

8 Answers  


List out benefits of object oriented programming language?

0 Answers  


What is meant by stack and queue?

0 Answers   GrapeCity,


What is class forname?

0 Answers  


What is the difference between equals() and?

0 Answers  


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

0 Answers  


Categories