What will be the output of the following program?
public class GenericsErasureDemo {
public static void main(String args[])
{
GenericsErasure<String> stringObject = new GenericsErasure<String>("Hello");
System.out.println(stringObject.getClass().getName());
stringObject.showType();
}
}
class GenericsErasure<T> {
T obj;
GenericsErasure(T obj)
{
this.obj = obj;
}
void showType()
{
System.out.println(obj.getClass().getName());
}
}