*
The moose likes Beginning Java and the fly likes Collection Interfaces question? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Collection Interfaces question?" Watch "Collection Interfaces question?" New topic
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: 10170
    
    8

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?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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
 
wood burning stoves
 
subject: Collection Interfaces question?
 
Similar Threads
is it Collection or collection ??
Collections
java1.4+collection
question from javacross simulation
why collection API is called as framework