How can you say HashMap is syncronized?
Answer Posted / rahul
yes u r correct, hashmap is not threadsafe. It is hashtable
which is synchronized.
Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
Can we declare an array without size in java?
How many bits is a string?
Can a singleton class be inherited?
What is a conditional equation?
How many types of methods are there in java?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
What is sleep method?
What is a stack class in java ?
What is package protected in java?
Why does my function print none?
What is method overloading in JAVA? Why is it not present in C ?
I want to persist data of objects for later use. What’s the best approach to do so?
How do you check if an arraylist is not empty?
What is module in project?
What is the access scope of protected access specifier?