Home » JAVA Programming » Collections » Question
  1. Is hashmap an ordered collection.
    1. False
    2. True
    3. Only A
    4. Only B
    5. A and B both
Correct Option: C

Hashmap outputs in the order of hashcode of the keys. So it is unordered but will always have same result for same set of keys.



Your comments will be displayed only after manual approval.