Question PRG-JAVA-0075
HardWhat is type erasure in Java generics?
- A.
Types are checked only at run time
- B.
It makes generics faster
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Java question
What is type erasure in Java generics?
Types are checked only at run time
It makes generics faster
Sign up free to see the answer and a step-by-step explanation.
Generics are deleted from the code
Generic type information is removed at compile time, so List<String> and List<Integer> are the same class at run time