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


Please Help Members By Posting Answers For Below Questions

Can we declare an array without size in java?

518


How many bits is a string?

521


Can a singleton class be inherited?

521


What is a conditional equation?

558


How many types of methods are there in java?

523






How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

539


What is sleep method?

619


What is a stack class in java ?

608


What is package protected in java?

522


Why does my function print none?

516


What is method overloading in JAVA? Why is it not present in C ?

586


I want to persist data of objects for later use. What’s the best approach to do so?

498


How do you check if an arraylist is not empty?

573


What is module in project?

513


What is the access scope of protected access specifier?

531