how to make hashmap object as synchronized object?

Answer Posted / parishudh

Collections.synchronizedMap(<your hashmap reference>)

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the direct buffer and non-direct buffer in java?

545


Explain access specifiers?

661


What is anagram word?

523


Can a class have more than one object?

528


Why are global variables used?

503






Can java hashmap have duplicate keys?

511


What are the various access specifiers in java?

569


What is the mapping mechanism used by java to identify IDL language?

591


Which java collection does not allow null?

717


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

656


What is the meaning of find and replace?

527


What is tree in java?

491


Difference between object and reference?

682


How will you reverse a link list without using recursion?

599


What is the difference between a constructor and a method?

569