How to synchonise HashMap

Answer Posted / yogesh sanas

Map map = Collections.synchronizedMap(new HashMap());

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Java Annotations?

782


Is node a data type in java?

759


What is set string?

819


How are this() and super() used with constructors in java programming?

799


What is the difference between variable declaration and variable initialization?

779


Java Compiler is stored in JDK, JRE or JVM?

1269


define polymorphism in java

874


What about abstract classes in java?

857


In which order the iterator iterates over collection?

809


What do you mean by exception handling in Java?

1017


What is the final class?

776


Is zero a natural number?

804


What defines function?

762


What is difference between char array and string?

825


What is charat ()?

746