i can't understand why it compiling successfully!! how compiler knows the toString() method is there or not as the toString() not there in java.lang.Number class .any body can please explain.thanks in advance
when you instantiate generic class with out using any generic types. it takes Object as generic type.
In above code N is considered as Number because N extends Number. Number class has toString() method inherited from Object [ September 30, 2008: Message edited by: ramesh maredu ]