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

Is void a data type in java?

526


Is there a case when finally will not execute?

569


Can we use a default constructor of a class even if an explicit constructor is defined?

657


How do you use find and replace?

515


What is the biggest integer?

557






What is method in java ?

629


What are the benefits of java?

575


What is polymorphism java example?

550


Is oracle java 11 free?

533


What is the difference between java applets and applications?

570


What is unicode with example?

614


What is string and its types?

613


What class of exceptions are generated by the java run-time system?

639


Write a program to print all permutations of string?

680


Write a program to find the whether a number is an Armstrong number or not?

576