my dog learned polymorphism*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Collection 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 » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Collection" Watch "Collection" New topic
Author

Collection

brent spearios
Ranch Hand

Joined: Apr 10, 2002
Posts: 48
Is collection and interface or a class?
Tim Murphy
Greenhorn

Joined: Apr 11, 2002
Posts: 18
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

Joined: Apr 10, 2002
Posts: 48
Thank you greenhorn.
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
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


SCJP Tipline, etc.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Collection