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

Why is singleton class used?

790


Describe the Big-O Notation.

822


Which class is the superclass for all the classes?

778


What is stringjoiner ?

751


What do you mean by a JVM?

835


Write a program to print fibonacci series

812


Difference between nested and inner classes ?

820


How do you define a variable?

739


What is immutability in java?

826


What is reverse function?

803


What is mnemonic in assembly language?

823


What are namespaces in java?

755


Difference between == and .equals() ?

761


What are the application of stack?

691


Is empty set an element of empty set?

850