I have some classes.
class A{
static void v(){
System.out.println("A");
}
}
class A1 extends A{
static void v(){
System.out.println("A1");
}
}
class B <T extends A>{
void v(){
T.v();
}
}
Why following code outputs "A"?
B b = new B<A1>();
b.v();
I thought that the code should output "A1" because B<A1>()
.