aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes about Class AbstractCollection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "about Class AbstractCollection" Watch "about Class AbstractCollection" New topic
Author

about Class AbstractCollection

david hu
Ranch Hand

Joined: Jul 20, 2001
Posts: 143
Class AbstractCollection is not a abstract class.Right? why?
Ashish Hareet
Ranch Hand

Joined: Jul 14, 2001
Posts: 375
Here's what the API sez 'bout this
This class provides a skeletal implementation of the Collection interface, to minimize the effort required to implement this interface.
To implement an unmodifiable collection, the programmer needs only to extend this class and provide implementations for the iterator and size methods. (The iterator returned by the iterator method must implement hasNext and next.)
To implement a modifiable collection, the programmer must additionally override this class's add method (which otherwise throws an UnsupportedOperationException), and the iterator returned by the iterator method must additionally implement its remove method.
And i think i'll say that this is an abstract class . Tell me if i am wrong .
Hope this help's
Hey I became a ranch hand
[This message has been edited by Ashish Hareet (edited July 20, 2001).]
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
When in doubt, check the source (I think I'll make that my mantra):
public abstract class AbstractCollection implements Collection {

------------------
Tom - SCJP --- Co-Moderator of the Programmer Certification Forums


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: about Class AbstractCollection
 
Similar Threads
Doubt on PriorityQueue?
who calls toString() when called on interface
overriding methods in AbstractCollection
how System.out.println(ArrayList al) works?
differences