Generics in Java: Bounded Type Parameters & Wildcards
Java
| Intermediate
- 15 videos | 1h 57m 2s
- 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 courseRecall the disadvantages of unbounded type parametersConstrain types using bounded type parametersSpecify type parameters with interface boundsUse bounded type parameters with custom objectsUse multiple bounds with type parametersUse upper-bounded wildcardsCompare and contrast upper-bounded wildcards and bounded type parameters
-
Recall when and how you would use unbounded wildcardsUse unbounded wildcardsUse lower-bounded wildcardsRecall how java infers data types using wildcard captureRecall the structure of valid type parameter namesRecall how the java compiler uses type erasure with generic typesSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 27s
-
9m 17s
-
8m 40s
-
9m 18s
-
10m 4s
-
8m 8s
-
10m 20s
-
5m 38s
-
11m 5s
-
5m 10s
-
10m 13s
-
9m 6sIn 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
-
8m 1sIn 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
-
7m 23s
-
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.