Java Generics in Java Generics in Java Generics Quiz

Maha Hassan Hassan
Maha Hassan Hassan
2,045 Points

In quizzes; if I submit the wrong answer how do I know the right answer?

class Pair { }

the question was Fill in the blank to have 2 parameters class in generic subject

My answer was class Pair<T1,T2>{ }

why this answer is wrong?

1 Answer

Steven Parker
Steven Parker
195,592 Points

The quizzes are just there to help you check your knowledge. Simply knowing the right answer is not important, but knowing how to get the right answer is.

So if you can't confidently get it, the course encourages you to re-visit the material and provides a "Review Video" button for your convenience.