Mega Code Archive

 
Categories / Java Tutorial / Generics
 

Generics Work Only with Objects

Gen< int> strOb =  new Gen< int>(53); // Error, can't use primitive type