การลบประเภทเป็นกลไกที่คอมไพเลอร์ Java ลบข้อมูลประเภททั่วไปทั้งหมด ณ เวลารวบรวม หลังจากการคอมไพล์แล้ว List<String> และ List<Integer> เป็นเพียงรายการในรหัสไบต์ นี่เป็นตัวเลือกการออกแบบโดยเจตนาเพื่อรักษาความเข้ากันได้แบบย้อนหลังกับโค้ด pre-Java-5

เกิดอะไรขึ้นระหว่างการลบ
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.