I'm still thinking about such case - two method declarations:
public <T extends MyClass> void method1(T val)
public void method2(MyClass val)
what is the principal difference between these two declarations? In either case I can use object of MyClass and it's child classes.
So what is the benefit of using generics here?
I will be thankful if someone explains this to me. Thank you!