• Post Reply Bookmark Topic Watch Topic
  • New Topic

Implementation for List interface  RSS feed

 
Nila dhan
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
List is an interface.But where is its implementation?
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look at the javadocs for the java.util.List interface you can see "All Known Implementing classes" on top of the page (line 9). Every interface in the javadocs has this line (if any implementations are known of course).

List Javadoc
 
Anupam Bhatt
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its in the Javadoc

All Known Implementing Classes:
AbstractList, AbstractSequentialList, ArrayList, AttributeList, CopyOnWriteArrayList, LinkedList, RoleList, RoleUnresolvedList, Stack, Vector
 
Srinivas Kalvala
Ranch Hand
Posts: 257
Firefox Browser Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Java doc & Java source will solve lot of doubts. Really they are great source to learn about java.
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ArrayList is a implementation.Check javadoc.In fact you can have your own implementation of List interface.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!