L'effacement de type est le mécanisme par lequel le compilateur Java supprime toutes les informations de type générique au moment de la compilation. Après la compilation, un List<String> et un List<Integer> sont tous deux simplement List en bytecode. Il s'agissait d'un choix de conception délibéré pour maintenir la compatibilité ascendante avec le code pré-Java-5.

What Happens During Erasure
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.