This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Collection Interfaces question?" Watch "Collection Interfaces question?" New topic

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


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: 10268

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é

Joined: Nov 24, 2005
Posts: 14687

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
It is sorta covered in the JavaRanch Style Guide.
subject: Collection Interfaces question?