Saved Bookmarks
| 1. |
In Which Order Mappings Are Stored In Hashmap? |
|
Answer» Random ORDER because HashMap doesn't provide any ordering guarantee for keys, values, or entries. When you iterate over an HashMap, you may GET the different order EVERY TIME you iterate over it. Random order because HashMap doesn't provide any ordering guarantee for keys, values, or entries. When you iterate over an HashMap, you may get the different order every time you iterate over it. |
|