Java Reference
In-Depth Information
As the program shows, it's valid to declare a reference to an array of type T , as this line
does:
But, you cannot instantiate an array of T , as this commented-out line attempts:
The reason you can't create an array of T is that there is no way for the compiler to know
what type of array to actually create. However, you can pass a reference to a type-com-
Search WWH ::




Custom Search