Is hashmap keyset ordered?



Is hashmap keyset ordered?..

Answer / Ankita Tiwari

No, by definition a HashMap does not maintain any particular order for its KeySet. The elements are unordered and their positions do not reflect the insertion order.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is the use of sorting the data?

1 Answers  


List the types of rotations available in splay tree?

1 Answers  


What does isempty() member method determines?

1 Answers  


Describe tree database.

1 Answers  


What are the advantages and disadvantages of linked list?

1 Answers  


What is the difference between collections class vs collections interface?

1 Answers  


What are the two types of data?

1 Answers  


What is data structure and data type?

1 Answers  


List the area of applications where stack data structure can be used?

1 Answers  


What is a node in it?

1 Answers  


Define an algorithm.

1 Answers  


What does abstract data type means?

23 Answers   College School Exams Tests, Infosys, SBIT, TCS,


Categories