Multiple choice technology architecture

Which Java package contains classes that implement the Iterator design pattern?

  1. Java. enumeration

  2. java.util

  3. Java.math

  4. java.text

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

java.util contains Iterator, ListIterator, and collections that use the Iterator pattern for uniform traversal. Java.enumeration is legacy, java.math is for big numbers, and java.text handles formatting and parsing.