CodesJava

Easy learning with example program codes

What is the difference between Iterator and ListIterator?

IteratorListIterator
It traverses the elements in forward direction only.It traverses the elements in backward and forward directions both.
It can be used in List, Set and Queue.It can be used in List only.

Java interview questions on collections

Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status