Meaningless Drivel is fun!
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Do ListIterator extends List Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Do ListIterator extends List" Watch "Do ListIterator extends List" New topic

Do ListIterator extends List

Venkat dasari
Ranch Hand

Joined: Nov 12, 2003
Posts: 67
HI everybody,
When i was writing the dan's exam i came across with two questions about listiterator extending list.
To my surprise,there were two opposite saying that listiterator extendslist and the other saying it does not extend the list.
So please someone help me regarding the matter.
Thank you
Chaitanya Dasari

Regards,<br />Venkat Dasari<br />SCJP 1.4, SCBCD.
Yosi Hendarsjah
Ranch Hand

Joined: Oct 02, 2003
Posts: 166
Look at the API here.
dennis zined
Ranch Hand

Joined: Mar 07, 2003
Posts: 330
Hi Venkat. Nope listIterator does not extend list. The only thing listIterator extends is Iterator. List "has-a" listIterator but does not extend it.

SCJP 1.4<br />SCWCD 1.4
Venkat dasari
Ranch Hand

Joined: Nov 12, 2003
Posts: 67
thanks for the help
I agree. Here's the link:
subject: Do ListIterator extends List
It's not a secret anymore!