Multiple choice

_____ is used to generate a series of elements one at a time.

  1. Vector

  2. Hash Table

  3. Stack

  4. Enumeration

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

Enumeration is an interface in Java that allows you to generate (iterate through) a series of elements one at a time from collections like Vector or Hashtable. Unlike other data structures, Enumeration specifically provides the hasMoreElements() and nextElement() methods for sequential access.