answer : ABE
The bytecode after compilation with type erasure contains only normal classes, interfaces and methods, ensuring that no new types are produced.
public Collection foo(Collection arg) {...}
A) correct
B) correct different arguments so this overloads
C) not correct
Iterable is an interface so it is not a covariant type
E) correct
return type is a covariant to Collection
F) not correct
this is overrides see A
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ASPushkin
7 months agod7bb0b2
6 months, 4 weeks agod7bb0b2
7 months agod7bb0b2
6 months, 4 weeks ago