YoVDO

Java: Generic Classes

Offered By: LinkedIn Learning

Tags

Java Courses Type Inference Courses Type Erasure Courses

Course Description

Overview

Learn how to use Java generics to write cleaner code and help eliminate runtime issues.

Syllabus

Introduction
  • Generics in Java
  • Prerequisites for this course
1. Fundamentals of Generics
  • Understand the need for generics
  • Understand generics in Java
  • Terms in generics
  • Rules and naming conventions
  • Advantages of generics
2. Generic Classes and Methods
  • Generic classes/interface use case
  • Create a generic class demo
  • Understand generic methods and constructors
  • Implement a generic method as a utility
  • Using bounded types
  • Challenge: Write code using generic classes/bounded types
  • Solution: Write code using generic classes/bounded types
3. Generics: Deep Dive
  • Generic class hierarchies
  • Type argument hierarchies
  • Understand type erasure in generics
  • Understand bridge methods
  • Understand type inference and target types
  • Applying wildcard arguments
  • Restrictions on generics
Conclusion
  • Where to go from here

Taught by

Ketkee Aryamane

Related Courses

C++ in Detail: Common Idioms
Udemy
Generic Swift: Simplifying Protocols and Generics
ChariotSolutions via YouTube
The Sincerest Form of Flattery - How Java & Scala are Imitating Functional Languages
GOTO Conferences via YouTube
Breaking Dependencies - Type Erasure - The Implementation Details
NDC Conferences via YouTube
Type System Tips for the Real World - RustConf 2017
Rust via YouTube