Java Reference
In-Depth Information
Although you can't declare static members that use a type parameter declared by the
enclosing class, you can declare static generic methods, which define their own type para-
meters, as was done earlier in this chapter.
Generic Array Restrictions
There are two important generics restrictions that apply to arrays. First, you cannot instan-
tiate an array whose element type is a type parameter. Second, you cannot create an array
of type-specific generic references. The following short program shows both situations:
Search WWH ::




Custom Search