Subject not found.
1.

What Is The Difference Between Iterator And Listiterator?

Answer»

Iterator TRAVERSES the elements in forward DIRECTION only whereas LISTITERATOR traverses the elements in forward and backward direction.

Iterator:

  • Iterator traverses the elements in forward direction only.
  • Iterator can be used in List, Set and QUEUE.

ListIterator:

  • ListIterator traverses the elements in backward and forward DIRECTIONS both.
  • ListIterator can be used in List only.

Iterator traverses the elements in forward direction only whereas ListIterator traverses the elements in forward and backward direction.

Iterator:

ListIterator:



Discussion

No Comment Found