Campbell Ritchie wrote:What happened when you tried to compile that code?
Christopher Schneider wrote:
You should remember that T can be anything. With that code, I could theoretically do this:
There is no method getWhatAmI() defined for an Integer class, however, so you'll receive a compile time error.
Campbell Ritchie wrote:I think they were introduced in Java1.2 which was about 1998.