Consider a plain-old generic class:
class Blob<T>{
T peanut;
}
To my surprise, the following line of code compiled okay:
Blob c=new Blob();
Why is this allowed, and what type is automatically inserted?
Consider a plain-old generic class:
class Blob<T>{
T peanut;
}
To my surprise, the following line of code compiled okay:
Blob c=new Blob();
Why is this allowed, and what type is automatically inserted?