difference between iterator and listiterator java

What is difference between Iterator and ListIterator?

Answer: Here is the differences and advantages of ListIterator over Iterator. 1-Iterator is available to all Collection classes whereas ListIterator is available to only List classes e.g ArrayList, Linkedlist and Vector. NOTE: Since List classes are also a collection, so, both Iterator and ListIterator are available to List classes. ListIterator can only be used with […]

Scroll to top