Seetharaman Venkatasamy wrote:Iterator is an interface . you can find the implementation of Iterator in many classes in java.util package; example : AbstractList,HashSet ,...etc
Hm, sort of.
Jose, questions like these are so easy to find out without waiting on us to answer for you. There seems to be a pattern to your questions with this regard. If you look up Iterator (hit, click it) you will see each class that is known to implement it. Please, in the future, try and put forth some effort of your own. It's not that we don't like answering your questions but I fear you waste a lot of time waiting for us to respond when a simple google search or glance at the API will get you the information you need.
There are also many implementations hidden as private nested classes inside other classes. Most Collection implementation classes have their own Iterator implementation. The thing is, you don't need to know the exact type. Because these classes implement Iterator you know that they have methods hasNext(), next() and remove(), and these are all you need to call.