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 a finally block?

648


what is static import in java? Explain

668


Is null a string?

652


Is ruby built on java?

620


What is java util hashmap?

611






Is null in java?

644


When should the method invokelater() be used?

674


List two java ide’s?

716


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

612


If I only change the return type, does the method become overloaded?

620


What is the difference between static and non-static variables in java programming?

600


Describe the various concepts related to object oriented programming (oop).

674


What is scanner in java?

620


How to make a class or a bean serializable?

619


What is parsing in java?

615