Generics in Java: Bounded Type Parameters & Wildcards
Java SE 15
| 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
-
1.Course Overview2m 27sUP NEXT
-
2.Recognizing Unbounded Type Parameter Disadvantages9m 17s
-
3.Specifying Bounded Type Parameters8m 40s
-
4.Defining Classes with Bounded Type Parameters9m 18s
-
5.Using Bounded Types with Custom Objects10m 4s
-
6.Using Multiple Bound Specification for Bounded Types8m 8s
-
7.Constraining Types Using Upper-bounded Wildcards10m 20s
-
8.Comparing Bounded Types and Upper-bounded Wildcards5m 38s
-
9.Using Unconstrained Variables & Unbounded Wildcards11m 5s
-
10.Using Unbounded Wildcards in Class Objects5m 10s
-
11.Constraining Types Using Lower-bounded Wildcards10m 13s
-
12.Recognizing Java's Use of Wildcard Capture9m 6s
-
13.Identifying Valid and Invalid Type Parameter Names8m 1s
-
14.Recognizing Java Compiler's Use of Type Erasure7m 23s
-
15.Course Summary2m 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.