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 method overriding in java ?

878


Can we override a variable in java?

768


What is the transient keyword?

1339


What is variable explain with example?

795


What is final variable?

704


What are methods in java?

750


What is argument in java?

775


Which is fastest collection in java?

769


Explain the available thread states in a high-level?

731


what are different ways in which a thread can enter the waiting state? : Java thread

715


Is vector ordered in java?

731


Why does abstract class have constructor?

766


What do heavy weight components mean in java programming?

721


What are the new features in java 8? Explain

743


What is jdbc api?

758