• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collection Interfaces question?

 
Anto Telvin
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be easier to check this page about the Collections Framework.
 
Anto Telvin
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic