Generics In Java - Full Simple Tutorial

Master Generics and gain a deep understanding of how to use, read and apply Generics in Java.

  • Last updated 6/2024
  • English
  • Session starting on 2024-09-07
  • Location Online
  • Duration 2.5 hours
What you'll learn
  • Learn why Generics exist and how you can use it to make your code better

  • Create your own Generic types to implement elegant solutions to problems

  • Understand wildcards, upper bounds, lower bounds and master Generics syntax

  • Gain knowledge to tackle the trickiest interview questions about Generics

This course includes:

Requirements

  • Basic Java programming knowledge

Description

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.

 

Who this course is for:

  • Java Programmers, IT professionals who want to scale up their coding skills
5.0 course rating
E
Emily White
Infrastructure Engineer

"Sarah Williams' course on network architecture was just what I needed. The content was delivered clearly, and all the intricate technical details were explained perfectly."

R
Richard Martinez
IT Project Lead

"The course on network architecture was comprehensive and easy to follow. Sarah Williams broke down the technical components in a clear and precise manner."