Multiple choice technology programming languages

Which of the following does not guarantee the order of data storage will be constant over a period of time?

  1. HashMap

  2. ArrayList

  3. Stack

  4. Queue

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

HashMap does not guarantee any specific order of elements, and the order can change over time due to rehashing when the map resizes or when bucket chains are reorganized. ArrayList preserves insertion order, Stack maintains LIFO order, and Queue implementations follow FIFO order consistently.