Simone Aiello wrote:
I asked why I can't use the super in a declaration,
whereas I can use the extends.
Short answer: Because the JLS states that it is not legal.
Longer answer: What purpose would it serve? Since everything inherits from Object, something that must be a type that is super of B, means that it could be type Object. And since everything IS-A Object, it means the container can hold anything. What would the compiler need to type check?
Henry