What is an iterator?
An iterator is a collection framework functionality which enables sequential access of elements. The access can be done in one direction only. Java supports two types of iterators:
1. Enumeration Iterator
2. List Iterator
🔗Reference: stackoverflow.com
🔗Source: Java Interview Questions and Answers