for example, there is such a generic class
public class Gen<T>{
}
then there is such a method in other classes
public void showKeyValue(Gen gen){}
public void showKeyValue(Gen<?> gen){}
also, why Gen < Object > and Gen < String > are of the same category (Gen < Object > .Class = Gen < String > .class)
, but Gen < String > can"t point to a reference to Gen < Object > (Gen < Object > gen = new Gen < String > will make an error). Is there any difference between these two methods? if not, what"s the point of this?
A novice, hoping to have a great god to explain