Java generics type erasure: when and what happens?

I read about Java’s type erasure on Oracle’s website. When does type erasure occur? At compile time or runtime? When the class is loaded? When the class is instantiated? A lot of sites (including the official tutorial mentioned above) say type erasure occurs at compile time. If the type information is completely removed at compile … Read more