What are Generics?

In this lesson, you will learn about generics.

We'll cover the following...

Introduction to Generics

Generics are used to apply stronger type checks at compile time. They enforce type-safety in code. For example, the type safety in collections is enforced by holding the same type of data. Generics help write reusable classes and ...