Generics in Java: Bounded Type Parameters & Wildcards

Java    |    Intermediate
  • 15 videos | 1h 57m 2s
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 36 users Rating 4.5 of 36 users (36)
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

  • 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

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

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.

YOU MIGHT ALSO LIKE

Rating 4.5 of 100 users Rating 4.5 of 100 users (100)
Rating 4.6 of 80 users Rating 4.6 of 80 users (80)
Rating 4.5 of 84 users Rating 4.5 of 84 users (84)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 343 users Rating 4.6 of 343 users (343)
Rating 4.5 of 41 users Rating 4.5 of 41 users (41)
Rating 4.6 of 36 users Rating 4.6 of 36 users (36)