Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collection

 
brent spearios
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is collection and interface or a class?
 
Tim Murphy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's an Interface.
You can refer to the online API documentation at:
http://java.sun.com/products/jdk/1.2/docs/api/java/util/Collection.html
 
brent spearios
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you greenhorn.
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by brent spearios:
Is collection and interface or a class?

Be sure not to confuse the Collection interface with the Collections class.
The Collection interface is the basis for many data containers in Java. The Collections class, however, supplies a large number of utility methods (like sorts and the like) that operation on objects that implement the Collection interface.
Corey
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic