Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do ListIterator extends List

 
Venkat dasari
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 answers.one 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
 
Yosi Hendarsjah
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the API here.
 
dennis zined
Ranch Hand
Posts: 330
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Venkat. Nope listIterator does not extend list. The only thing listIterator extends is Iterator. List "has-a" listIterator but does not extend it.
 
Venkat dasari
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the help
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic