Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Iterator's implementation


Tags:

Hi all,

Am a new user to Java world. I have a clarification on methods of Iterator interface. Iterator interface provides hasNext(), next() and remove() methods. From the Javadoc, class BeanContextSupport implements Iterator.

In collections like ArrayList, HashTable, HashSet, Vector we make use of those 3 methods to traverse through and remove objects. If you take ArrayList's hierarchy, I don't find BeanContextSupport in picture. In that case, which implementation does an ArrayList (or any collection) take for those 3 methods?

Thanks,
Maria