Grokking Java Interview Questions
0% completed
Chapter Assessment: Generics
The subject of this review is generics: what erasure removes, what a bound adds, when a wildcard is needed, how the compiler infers a type argument, and which code the language does not allow. Its bank holds twenty-five questions, of which each attempt draws ten. Most of them show a declaration or a short piece of store code and ask whether it compiles, where a cast fails, or which signature is right. Be ready to write down the erased form of a method, to name the role of each parameter before choosing its wildcard, and to say what a variable declared with var leaves out
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%