Suppose I have a class and I want to use it somewhere as a generic type:
class MyList<T>
{
T[] list=T[10];
public void add(T element)
{
list[0]=element;
}
}
After compilation, does it remove its type information like it is the case for generic collections?
I don't need to use this code anywhere, so please don't concentrate upon finding mistakes. I just wanna ask a general question through this code that after compilation will list instance variable be of type Object class.