Iterator in Java

Basci working mechanism of Java Iterator

An iterator in Java is a special type of object that provides sequential (one by one) access to the elements of a collection object. In simple words, it is an object that allows us to get and process one element…

Read MoreIterator in Java

Enumeration in Java

Java Iterators: Enumeration in Java

In this tutorial, we will discuss enumeration in Java with the help of examples. We will also understand the different types of iterators in Java. Before moving to understand enumeration, let’s first understand how many types of iterators are available…

Read MoreEnumeration in Java