Why does the LinkedList class explicitly implement the List interface? It should implicitly implement the interface through the AbstractList class, shouldn't it? Does the "implements List" just serve as a reminder? Thanks, Greg [ December 12, 2002: Message edited by: Greg Windwall ]
It is redundant. I believe it is there for (i) clarity (ii) generating the 'complete' javadoc info. So a user can see the implementing interfaces as well as the parent class hierarchy. Then again, someone may have a different reason for it. Any way, the following example shows why it is redundant.
It's never done THAT before. Explain it to me tiny ad: