How often do you use Java Generics when writing your own types?
Java Generics is very much an underrated and underutilized feature of Java. Yes, Java Generics is a necessary skill when working with Collection classes. But the true power lies with using it for your own types!
Most Java developers get by with a rudimentary knowledge of Generics. However a good understanding of Generics adds an extra dimension to your Java code that makes it more type-safe and easier to work with.
This course covers an in-depth treatment to Java Generics and turn it from being a pain to being a joy to use.
Topics covered:
- Learn how Generics works with primitive types in conjunction with another Java feature - autoboxing and unboxing
- Understand what parameterized types are. What does it mean to add parameter to type information?
- Learn how to create your own custom generic types
- Implications of Generics with inheritance and polymorphism
- Understand wildcards, upper bounds and lower bounds with Generics
- Learn how to work with static methods using Generic types
Taught in the inimitable Java Brains style, this course covers everything you need to know to wield the power of Generics in your Java code as well as understand Generics syntax in other Java code.