Java: Generic Classes
2h 39mIntermediate2022-02-10
Authors

Ketkee Aryamane
Software Professional
Course details
Generics in Java are popular and widely used in all kinds of project development—Core Java projects, web application projects, web services, and more. It’s an indispensable capability in the Java language and provides the power of eliminating errors at compile time itself instead of resulting in runtime problems. In this course, Ketkee Aryamane goes hands-on with generics in Java. She starts with the fundamental concepts, terms, and rules and naming conventions in generics, then covers generic classes and methods. Ketkee then takes a deeper dive into generics, covering topics like generic class hierarchies, wildcard arguments, and restrictions on generics. If you’re a developer looking to save time by eliminating runtime issues and making more readable code, join Ketkee in this course.
Skills covered
JavaProgramming FoundationsOracleProgramming LanguagesSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Generics in Java
- 02 - Prerequisites for this course
1. Fundamentals of Generics
- 03 - Understand the need for generics
- 04 - Understand generics in Java
- 05 - Terms in generics
- 06 - Rules and naming conventions
- 07 - Advantages of generics
2. Generic Classes and Methods
- 08 - Generic classes interface use case
- 09 - Create a generic class demo
- 10 - Understand generic methods and constructors
- 11 - Implement a generic method as a utility
- 12 - Using bounded types
- 13 - Challenge - Write code using generic classes bounded types
- 14 - Solution - Write code using generic classes bounded types
3. Generics - Deep Dive
- 15 - Generic class hierarchies
- 16 - Type argument hierarchies
- 17 - Understand type erasure in generics
- 18 - Understand bridge methods
- 19 - Understand type inference and target types
- 20 - Applying wildcard arguments
- 21 - Restrictions on generics
Conclusion
- 22 - Where to go from here