Language Basics Java Book

To handle the transition to generics, Java allows a generic class to be used without any type arguments.
Here is an example that shows a raw type in action:

class MyClass {
T ob;
MyClass(T o) {
ob = o;
}
T getob() {
return ob;
}
}
public class Main {
public static void main(String args[]) {
MyClass raw = new MyClass(new Double(98.6));
double d = (Double) raw.getob();
System.out.println("value: " + d);
}
}