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