| Author |
Collection Interfaces question?
|
Anto Telvin
Ranch Hand
Joined: Aug 12, 2008
Posts: 113
|
|
hi ranchers we have mainly collection interfaces like collection,List,Queue,Set,SortedSet,Map etc.All has so many methods .my question is did these interfaces contain classes it is concrete or abstract classes thanks
|
Anto Telvin Mathew<br />Many of the life failures are people who did not realize how close they were to success when they give up. EDISON
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8439
|
|
Your question is confusing. The interface doesn't "contain" classes as you put it. In very simple terms an interface is just like a template. It provides you with all the things it is capable of doing. Now how it is going to achieve it. All the interfaces you have mentioned have concrete implementations. Some implementations are abstract while some are concrete. e.g. AbstractList is an abstract implementation of List where as ArrayList is a concrete implementation of List. If you go through the API you will find a list of all implementations for the given interface. Does this answer your question? Or did I perhaps misunderstand what you were asking?
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
|
It would be easier to check this page about the Collections Framework.
|
[My Blog]
All roads lead to JavaRanch
|
 |
Anto Telvin
Ranch Hand
Joined: Aug 12, 2008
Posts: 113
|
|
|
thanks
|
 |
 |
|
|
subject: Collection Interfaces question?
|
|
|