How can you say HashMap is syncronized?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Definition for connection pooling?
What is the difference between access specifiers and access modifiers in java?
How do you add an element to an arraylist in java?
Is null a string or object in java?
What is skeleton and stub?
What is a stack class in java ?
0 Answers Akamai Technologies,
What is finally in exception handling?
Do extraneous variables affect validity?
What are order of precedence and associativity, and how are they used?
What is the purpose of finalization?
Where is jre installed?
what is filters and its use?