Difference between revisions of "Generics"
From Suhrid.net Wiki
Jump to navigationJump to search| Line 1: | Line 1: | ||
| + | * Generics is a way to enforce '''ONLY compile-time''' type safety. | ||
| + | * All the type information is not present at run-time. The compiler strips out type information from the bytecode using a process called type erasure. | ||
| + | |||
| + | |||
[[Category:OCPJP]] | [[Category:OCPJP]] | ||
Revision as of 02:58, 25 May 2011
- Generics is a way to enforce ONLY compile-time type safety.
- All the type information is not present at run-time. The compiler strips out type information from the bytecode using a process called type erasure.