• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collections

 
naro pad
Ranch Hand
Posts: 58
Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I had a question about collections. We have Set, List, Map which are interfaces and HashSet, ArrayList, HashMap,... which are the classes that are implement this interfaces.
What about the Collection? I had the impression that was an interface but I found it to be a class. What is a class or interface?

Thanks
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
naro pad wrote:What about the Collection? I had the impression that was an interface but I found it to be a class.

Collection is an interface.

What is a class of interface?

Can you rephrase this ?
 
Campbell Ritchie
Sheriff
Pie
Posts: 47229
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Collection or Collections? Both exist.
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Collections is a class
Collection is an interface
 
naro pad
Ranch Hand
Posts: 58
Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok now I understand, I didn't know that both exist. I was missing the (s) at the end of the Collection that's why I was confused.

Thank you guys
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic