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 / ravikiran

Collections.synchronizedMap()

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a singleton class in Java?

513


Which variables are stored in heap?

543


What is polymorphism java example?

552


Define jit compiler?

668


What is volatile keyword in java

652






State the main difference between c++ and java?

594


Why we use protected in java?

538


When will we use them?

601


How does remove work in java?

526


What is method in java ?

631


Why string is immutable or final in java

630


Is there any case when finally will not be executed?

527


Explain the selection sort algorithm?

647


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

567


What is lazy programming?

570