CodesJava

Easy learning with example program codes

What is the difference between Iterator and ListIterator?


Iterator ListIterator
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

Sign Up/ Sign In
Ask a Question


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki