class a{}
class b extends a{}
class c <? extends b> extends b{}
public class d {
public static void main(String[] args) {
c<c> n = new c<c>();
}
}
I am reading SCJP. I didn't get the concept of generic class with class<?>
and class<? extends anything>
.....if it means we can pass any class which extends "anything" then why above code is not working?
Please explain this , its very confusing
Regards