wood burning stoves
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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: 10771

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

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
I agree. Here's the link: http://aspose.com/file-tools
subject: Collection Interfaces question?
It's not a secret anymore!