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 access scope of a protected method?

566


What is anti pattern in programming?

501


In the below example, what will be the output?

597


Give the difference between the println method and sqrt method?

628


Explain how hashmap works?

594






Why should we use singleton pattern instead of static class?

465


What is the effect of keeping a constructor private?

477


Which one will take more memory: an int or integer?

779


What is static data type in java?

546


What is logical variable?

516


what is meant by encapsulation?

632


What does singleton class mean?

540


What is the difference between conversation & casting?

582


What data structures are used to perform recursion?

608


What does string [] args mean?

543