I have a generic:
public class Gen<T> { private T value; public T getValue() { return value; } } and some method:
public void someMethod(Gen<?> gen) { System.out.println(gen.getValue()); } Will there be any difference if the parameter of the method someMethod is of type Gen instead of Gen<?> ?
I understand that a metacharacter argument can make extends or super .
I correctly understood that Gen is a way to solve problems of legacy code?