Generics in Java: Bounded Type Parameters & Wildcards

Java SE 15
  • 15 Videos | 1h 57m 47s
  • 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 30s
    UP NEXT
  • Playable
    2. 
    Recognizing Unbounded Type Parameter Disadvantages
    9m 20s
  • Locked
    3. 
    Specifying Bounded Type Parameters
    8m 43s
  • Locked
    4. 
    Defining Classes with Bounded Type Parameters
    9m 21s
  • Locked
    5. 
    Using Bounded Types with Custom Objects
    10m 7s
  • Locked
    6. 
    Using Multiple Bound Specification for Bounded Types
    8m 11s
  • Locked
    7. 
    Constraining Types Using Upper-bounded Wildcards
    10m 23s
  • Locked
    8. 
    Comparing Bounded Types and Upper-bounded Wildcards
    5m 41s
  • Locked
    9. 
    Using Unconstrained Variables & Unbounded Wildcards
    11m 8s
  • Locked
    10. 
    Using Unbounded Wildcards in Class Objects
    5m 13s
  • Locked
    11. 
    Constraining Types Using Lower-bounded Wildcards
    10m 16s
  • Locked
    12. 
    Recognizing Java's Use of Wildcard Capture
    9m 9s
  • Locked
    13. 
    Identifying Valid and Invalid Type Parameter Names
    8m 4s
  • Locked
    14. 
    Recognizing Java Compiler's Use of Type Erasure
    7m 26s
  • Locked
    15. 
    Course Summary
    2m 14s

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.