🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Edward Citalan
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Edward Citalan
    Python Development Techdegree Graduate 11,397 Points

    So what are types?

    Posted August 23, 2022 12:01am by Edward Citalan
    .a{fill-rule:evenodd;}techdegree seal-36
    Edward Citalan
    Python Development Techdegree Graduate 11,397 Points
    • Java
    • Generics in Java
    • Generics in Java
    • A Generic Solution

    0 Answers

  • Dearce Goodman
    Dearce Goodman
    2,331 Points

    Where am I going wrong

    Posted May 8, 2021 6:00pm by Dearce Goodman
    Dearce Goodman
    2,331 Points
    • Java
    • Generics in Java
    • Generics in Java
    • Generics Quiz

    0 Answers

  • Korsons Don
    Korsons Don
    3,141 Points

    Why was the variable 'contents' dereferenced?

    Posted June 17, 2020 1:34am by Korsons Don
    Korsons Don
    3,141 Points
    • Java
    • Generics in Java
    • Generics in Java
    • A Common Problem

    1 Answer

  • Jake Lee
    Jake Lee
    2,789 Points

    is "thing" null? Object thing = contents; contents = null; return thing;

    Posted May 25, 2020 2:33pm by Jake Lee
    Jake Lee
    2,789 Points
    • Java
    • Generics in Java
    • Generics in Java
    • A Common Problem

    1 Answer

  • Maha Hassan Hassan
    Maha Hassan Hassan
    3,353 Points

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

    Posted March 10, 2020 3:50am by Maha Hassan Hassan
    Maha Hassan Hassan
    3,353 Points
    • Java
    • Generics in Java
    • Generics in Java
    • Generics Quiz

    1 Answer

  • Mehmet Bekiroglu
    Mehmet Bekiroglu
    2,851 Points

    Why is it that you no longer need to cast milk/oranges when using Generics?

    Posted November 18, 2019 2:00pm by Mehmet Bekiroglu
    Mehmet Bekiroglu
    2,851 Points
    • Java
    • Generics in Java
    • Generics in Java
    • A Generic Solution

    1 Answer

  • Leonardo Flores Toscano
    Leonardo Flores Toscano
    2,350 Points

    Sorry I am not understanding this type 2 question and I am stucik in here according to me class Pair (T a, X b) works

    Posted November 9, 2019 2:01pm by Leonardo Flores Toscano
    Leonardo Flores Toscano
    2,350 Points
    • Java
    • Generics in Java
    • Generics in Java
    • Generics Quiz

    1 Answer

  • Tian Yu
    Tian Yu
    611 Points

    what is the purpose of adding a type parameter to a method? Any example like the one for the classes?

    Posted October 25, 2019 8:45pm by Tian Yu
    Tian Yu
    611 Points
    • Java
    • Generics in Java
    • Generics in Java
    • Generic Functions

    1 Answer

  • Ronald Greer
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ronald Greer
    Front End Web Development Techdegree Graduate 56,430 Points

    How come it asks me to type in two type parameters and when I do I get the question wrong

    Posted February 12, 2019 1:16am by Ronald Greer
    .a{fill-rule:evenodd;}techdegree seal-36
    Ronald Greer
    Front End Web Development Techdegree Graduate 56,430 Points
    • Java
    • Generics in Java
    • Generics in Java
    • Generics Quiz

    1 Answer

  • Erick Luna
    Erick Luna
    21,412 Points

    Does this course have prerequisites?

    Posted January 10, 2019 9:38pm by Erick Luna
    Erick Luna
    21,412 Points
    • Java
    • Generics in Java
    • Generics in Java
    • A Common Problem

    2 Answers

  • <noob />
    <noob />
    17,063 Points

    Why the answer is all of those?

    Posted January 8, 2019 7:34pm by <noob />
    <noob />
    17,063 Points
    • Java
    • Generics in Java
    • Generics in Java
    • Generics Quiz

    2 Answers

  • Sanora Griffin
    Sanora Griffin
    2,972 Points

    Generics in Java Fill in the blank to declare two type parameters for our new Pair class: class Pair _______ { }

    Posted January 7, 2019 10:57pm by Sanora Griffin
    Sanora Griffin
    2,972 Points
    • Java
    • Generics in Java
    • Generics in Java
    • Generics Quiz

    4 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.