Its compiles fine :
1) but my problem is with the hierarchy
String does implements Comparable but it doesn't extends it
They why I am not able to catch this problem. Isn't it a wrong interpretation indicated by generic syntax for method.
2) Syntax says : <U [extends SuperClass [& Interface[,Interface]]]
Now,
What if I dont want to use extend but does need to allow classes that implements particular interface.
Some thing like
<U [& Interface[,Interface]]]
3)Why generic doesnt distingues between "extending something" and "implementing something". There must be a solid reason behind this for sure.