0 votes
1 view
in Java by (22.4k points)

What are the differences between a HashMap and a Hashtable in Java?

Which is more efficient for non-threaded applications?

1 Answer

0 votes
by (40.3k points)
edited by

HashTable and HashMap are used to store data in key-value format but there are major differences between them as follows:

Want to learn Java from scratch! Here's the right video for you on Java provided  by Intellipaat:

  

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...