Opened a LinkedHashSet source code today and found some interesting thing:
public class LinkedHashSet<E>
extends HashSet<E>
implements Set<E>, Cloneable, java.io.Serializable {
The question is: why do they need both "extends HashSet" and "implements Set" when HashSet already is the Set?
See Question&Answers more detail:os