186k views
1 vote
Which of the following statements are true?

a.The compiler translates generic code by replacing generic types with Object, or with the upper bounds of those types.
b.The compiler often has to insert type casts into code that results from translating generic ode Generic types do not exist at the byte code level
c.All of these

User Glutch
by
5.5k points

1 Answer

3 votes

Answer:

c. All of these

Step-by-step explanation:

Generic code by replacing generic types with Object, or with with upper bounds.

The compiler has to insert type casts into code that results from translating generic types do not exist at the byte code level.

User Jilyan
by
6.3k points