CodeGym /Courses /Module 2. Java Core /Additional lessons for the level

Additional lessons for the level

Module 2. Java Core
Level 5, Lesson 4
Available

What are generics in Java?

In this lesson, we talk about generics. Or rather, about the basics that you need to know when diving into generics: what generics are and why you need them at all. The topic is very important, and you definitely need to understand it. Forward!

Type erasure

This lesson is devoted to some features of generics as well as pitfalls that arise when working with them. Because generics were not part of Java when the language was created, type erasure has been added. What's that? We'll figure it out.

Wildcards in generics

Wildcards are a very important feature of generics and definitely deserve a separate lesson. This is an interesting and simple topic. You're going to love it :)

Using varargs when working with generics

Using varargs with generics can lead to rather unpleasant consequences — heap pollution. In this lesson, we conclude our discussion of various features of generics in Java.

4
Task
Java Core, level 5, lesson 4
Locked
Something superfluous
Something superfluous
8
Task
Java Core, level 5, lesson 4
Locked
OOP: Method overloading
OOP: Method overloading
4
Task
Java Core, level 5, lesson 4
Locked
OOP: Method overloading - Eliminating the superfluous
OOP: Method overloading - Eliminating the superfluous
4
Task
Java Core, level 5, lesson 4
Locked
Man or woman?
Man or woman?
4
Task
Java Core, level 5, lesson 4
Locked
Be gone, all that is unnecessary!
Be gone, all that is unnecessary!
Comments (1)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Abhishek Tripathi Level 72, Rewa, India Expert
23 September 2023
Nice lesson. Not lying it was tough to understand as compared with any of the other, but somehow, I managed to grab all the thing by continuous repetition.