Is a hashset ordered?



Is a hashset ordered?..

Answer / Sachin Dev Verma

No, a HashSet (in Java) does not maintain the elements in any particular order. It stores unique elements and provides fast lookup operations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Does treeset allow duplicates?

1 Answers  


Is linkedlist thread safe?

1 Answers  


Why do we use trees in data structures?

1 Answers  


Explain what are the major data structures used in the hierarchical data model?

1 Answers  


What is data structure definition?

1 Answers  


What is the space complexity of quicksort?

1 Answers  


What is the family trees and connection by clause?

1 Answers  


What is red black tree in data structure?

1 Answers  


What is the complexity of selection sort?

1 Answers  


Which is the parent class of abstractqueue class?

1 Answers  


Write a program for Sorting an Array. Which sorting will you prefer?

0 Answers  


Why is concurrenthashmap thread safe?

1 Answers  


Categories