In Java Collection API framework, the Collection interface has defined a set of methods, e.g. size, isEmpty etc. There are 3 other interfaces which are subinterfaces of it, Set, List and Queue.
My question is, I notice in the Set and List interface definition, all the methods defined in Collection are redeclared again. But not the Queue interface. Aren't anything defined in Collection automatically available for all its sub interfaces and you practically don't need to redeclare it in List or Set?