• Post Reply Bookmark Topic Watch Topic
  • New Topic

ArrayLists Imp  RSS feed

 
raj joe
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In java collection framework i find that we have a

List interface and and abstract class AbstractList which implements List.
ArrayList Extends AbstractList and Implements List.

My question is if AbstraactList implements List what methods of List are overridden by ArrayList.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best place to find an answer to a question like this is the API:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/ArrayList.html

The methods implemented in this class are listed in the Method Summary near the top.

Just under that, you'll see a list of the methods inherited from the super class. There is then a section for each super class in the chain.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaDocs specify which methods are inherited from AbstractList etc.

If you are really curious, why not look at the source code? You can download it from:
http://java.sun.com/j2se/1.5.0/download.jsp
Admittedly it is a rather large download.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!