Generics in Java: Bounded Type Parameters & Wildcards

Java SE 15    |    Intermediate
  • 15 Videos | 2h 3m 32s
  • Includes Assessment
  • Earns a Badge
In Java, bounded type parameters and wildcards offer certain flexibility and disadvantages. Recognizing these will help you decide when and how to use these tools to your advantage when writing code. Use this course to get to grips with what's meant by unbounded and bounded type parameters, explore the use of wildcards in Java, and recognize the applications of unbounded, upper-bounded, and lower-bounded wildcards. As you advance, investigate what's meant by 'wildcard capture' and 'type erasure.' When you're finished, you'll be able to correctly identify scenarios for using bounded type parameters and wildcards and implement them correctly.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    recall the disadvantages of unbounded type parameters
    constrain types using bounded type parameters
    specify type parameters with interface bounds
    use bounded type parameters with custom objects
    use multiple bounds with type parameters
    use upper-bounded wildcards
    compare and contrast upper-bounded wildcards and bounded type parameters
  • recall when and how you would use unbounded wildcards
    use unbounded wildcards
    use lower-bounded wildcards
    recall how Java infers data types using wildcard capture
    recall the structure of valid type parameter names
    recall how the Java compiler uses type erasure with generic types
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 27s
    UP NEXT
  • Playable
    2. 
    Recognizing Unbounded Type Parameter Disadvantages
    9m 17s
  • Locked
    3. 
    Specifying Bounded Type Parameters
    8m 40s
  • Locked
    4. 
    Defining Classes with Bounded Type Parameters
    9m 18s
  • Locked
    5. 
    Using Bounded Types with Custom Objects
    10m 4s
  • Locked
    6. 
    Using Multiple Bound Specification for Bounded Types
    8m 8s
  • Locked
    7. 
    Constraining Types Using Upper-bounded Wildcards
    10m 20s
  • Locked
    8. 
    Comparing Bounded Types and Upper-bounded Wildcards
    5m 38s
  • Locked
    9. 
    Using Unconstrained Variables & Unbounded Wildcards
    11m 5s
  • Locked
    10. 
    Using Unbounded Wildcards in Class Objects
    5m 10s
  • Locked
    11. 
    Constraining Types Using Lower-bounded Wildcards
    10m 13s
  • Locked
    12. 
    Recognizing Java's Use of Wildcard Capture
    9m 6s
  • Locked
    13. 
    Identifying Valid and Invalid Type Parameter Names
    8m 1s
  • Locked
    14. 
    Recognizing Java Compiler's Use of Type Erasure
    7m 23s
  • Locked
    15. 
    Course Summary
    2m 11s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE