When Iterator iterator()
is put in Iterable
interface and this is extended by Collection
interface and AbstractCollection
interface, why this is again mentioned in Collection
/AbstractCollection
as no definition is given for this in abstract class.
Please help me to understand what I am missing in this from design perspective