Difference between Hash Table and Hash Map?

Answer Posted / guest

Hash Table is synchronized but Hash Map is not. Means Hash
Map allow Null value for key and value but Hash Table does
not allow.

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between error and exception

5030


What modifiers are allowed for methods in an interface?

652


What are the main differences between notify and notifyAll in Java?

585


What is the generic function?

531


How to make a write-only class in java?

579






What is a finally block?

568


Which collection is thread safe in java?

511


What is the purpose of the return statement?

521


What are the limitations of procedural programming approach?

532


How is hashcode calculated in java?

507


Explain the difference between the public, private, final, protected, and default modifiers?

553


What is ‘is-a ‘ relationship in java?

592


What is difference between variable declaration and definition?

516


What are access specifiers available in java?

583


What are operators and its types?

578