JAVA LANGUAGE Select the correct answer What is the name of
JAVA LANGUAGE
Select the correct answer.
What is the name of the process done by the Java compiler when it removes type variables from bytecode generated from generic classes and methods and replaces them with raw types ?
a)type removal
b) type erasure
c) generic erasure
d) class erasure
Solution
Answer: b) type erasure
Type erasure done by the Java compiler when it removes type variables from bytecode generated from generic classes and methods and replaces them with raw types
