Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
Hi,
Iterator is an interface in java.util package which has methods like hasNext(), next() and remove methods.
In implementing classes like HashSet etc the method iterator() returns object of type Iterator.
My doubt is where exactly the methods in Iterator interface are defined
Thanks in advance