The methods (hasNext() , next() and remove() ) are not defined in the interface. They are merely declared there.
Its implemented by other collection classes which have methods with return type as Iterator. For example the AbstractList implements it and returns the Iteraror objec tin repsonse to iterator() method call.
I want to be myself, but a better myself.<br />~ SCJP 1.4 (91%), SCWCD 1.4 (86%) ~
It implements the Iterable interface - not the Iterator interface. All interfaces should be abstracted back to a type that contains all referentially transparent operations. This is often referred to as "immutable". Iterable is "immutable", Iterable is not; this allows Iterable to be used in the for each loop.