Question

Discuss the differences between a list's regular iterator, which supports the use of a "for" loop,...

Discuss the differences between a list's regular iterator, which supports the use of a "for" loop, and its other list iterator that supports position-based operations.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOLUTION:- The differences between Iterator and ListIterator are given below:-

1-Iterator can be utilized to traversing the set and List collections but ListIterator could be utilized only with Lists.

2-Only Forward Direction Traversal is possible by Iterator and ListIterator could be utilized for Traversal in both directions via hasPrevious() and previous() .

3- ListIterator is inherited through Iterator interface and provides additional functionality such as addition,replacement of element along with obtaining the index position for past and forthcoming element.

===================================================================================

Add a comment
Know the answer?
Add Answer to:
Discuss the differences between a list's regular iterator, which supports the use of a "for" loop,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT