Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • Edward Citalan
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Edward Citalan
    Python Development Techdegree Graduate 11,398 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,398 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,985 Points

    Does this course have prerequisites?

    Posted January 10, 2019 9:38pm by Erick Luna
    Erick Luna
    21,985 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord