Which One is optimal to choose ?

Syncronized hash map or Hash table with single thread model?

How can a hash map syncronized with out using syncrozed
blocks in programm?

Answer Posted / dsr

Collections.synchronizedMap(HashMap object)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between I ++ and ++ I in java?

761


How will you load a specific locale?

762


How do you reverse a list?

797


Can we override constructors in java?

893


Can we use string in the switch case?

822


How do you do math powers in java?

841


What is treemap in java?

751


What is a nested structure?

762


Is nan false?

751


What technique is carried out to find out if a particular string is empty?

814


How an object is serialized in java?

769


Can a static method be overridden in java?

779


What is a pointer and does java support pointers?

806


What happens when I use / and % with a negative numerator?

809


What are the topics in advance java?

747