class Gen<T>{
T ob;
Gen(T ob1){
ob = ob1;
}
void disp(){
System.out.println("ob = "+ob);
}
void showType()
{
System.out.println("Type of T: " + ob.getClass().getName());
}
}
public class Methods_Const_inGenerics {
public static void main(String args[]){
Gen<Double> a = new Gen<Double>(10.3);
a.disp();
a.showType();
}
}