Generics in Java: Bounded Type Parameters & Wildcards

Java SE 15    |    Intermediate
  • 15 videos | 1h 57m 2s
  • Includes Assessment
  • Earns a Badge
Likes 18 Likes 18
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.


  • 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


  • 2m 27s
  • 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
    In this video, you'll learn about type inference and wildcards. You'll learn that when you use wildcards, you often get errors that are hard to understand. Many of the errors encountered with wildcards include the word capture. You'll first learn what exactly wildcard capture means. Then, you'll see how to handle this kind of error by refactoring your code. FREE ACCESS
  • Locked
    13.  Identifying Valid and Invalid Type Parameter Names
    8m 1s
    In this video, you'll learn how to recall the structure of valid type parameter names. You'll learn that when specifying the names of your type parameters, you must follow the convention of single uppercase letters. This allows you to clearly identify type parameter names and separate them from variable names or class names. FREE ACCESS
  • Locked
    14.  Recognizing Java Compiler's Use of Type Erasure
    7m 23s
  • Locked
    15.  Course Summary
    2m 11s


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

Digital badges are yours to keep, forever.