Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Generics in Java Generics in Java Generics Quiz

Maha Hassan Hassan
Maha Hassan Hassan
3,353 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
231,269 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.