Which is faster hashmap or hashtable?



Which is faster hashmap or hashtable?..

Answer / Vandna Arya

In common usage, the terms HashMap and HashTable are often used interchangeably to refer to a data structure that provides quick lookup times. However, technically speaking, a HashTable is an older interface in Java that is more rigid and slower than the modern HashMap implementation. Therefore, in practice, HashMap is generally faster.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Explain pre-order and in-order tree traversal.

1 Answers  


Write programs for Bubble Sort, Quick sort

15 Answers   Cognizant,


What is the height of an empty tree?

1 Answers  


What is dynamic array in excel?

1 Answers  


What are the types of algorithms?

1 Answers  


What is inplace sorting?

1 Answers  


What is the difference between hashmap and treemap?

1 Answers  


Traverse the given tree using Inorder, Preorder and Postorder traversals. Inorder : D H B E A F C I G J Preorder: A B D H E C F G I J Postorder: H D E B F I J G C A

1 Answers  


What are the types of queues?

1 Answers  


Which is the parent class of hashmap class?

1 Answers  


What do you mean by selection sort?

1 Answers  


How treemap orders the elements if the key is a string?

1 Answers  


Categories