Explain it in 60 seconds
Type erasure vs reified generics
Backend Engineering · Language Runtimes · Intermediate
What is type erasure in Java generics, and how does it differ from C# generics?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Java erases generic types at runtime.
- List<String> and List<Integer> same class at runtime.
- Can't do new T() or instanceof List<String>.
- C# keeps generic types at runtime (reified).
- Workarounds: pass Class<T>/type tokens.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.