Java Reference
In-Depth Information
In summary, the members of a raw type are erased to simulate the behavior of the type before
generics were added to the language. If you mix raw and parameterized types, you will not get the
full benefit of generics, and you may get some very confusing compile-time errors. Also, a raw type
is not the same as a parameterized type whose type parameter is Object . Finally, if you are
migrating an existing code base to take advantage of generics, the best approach is to migrate one
API at a time and to avoid entirely the use of raw types in new code.
< Day Day Up >
 
 
Search WWH ::




Custom Search