how can we synchronize Hash map?

Answer Posted / ravikiran

Collections.synchronizedMap(new HashMap());

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is thread pool in java with example?

534


Do you know why doesn't the java library use a randomized version of quicksort?

542


What are some characteristics of interference class?

506


Can we create an object of private class?

539


What are benefits of java?

548






How to remove the trailing spaces from a string?

644


What is the difference between the prefix and postfix forms of the ++ operator?

550


Why packages are used?

535


What is style and indentation?

540


Why java is used everywhere?

584


Can we instantiate interface in java?

662


Can java program run without jre?

558


What is difference between iterator access and index access?

638


Outline the major features of java.

561


Are true and false keywords?

558