Fannie Mae interview question

What is an advantage of using an Iterator in Java?