Generics and Wildcards in Java | Part 2 | Invariance vs Covariance vs Contravariance | Geekific

Geekific July 23, 2022
Video Thumbnail

About

No channel description available.

Video Description

Discord Community: https://discord.gg/dK6cB24ATp GitHub Repository: https://github.com/geekific-official/ In one of Geekific’s very first videos, we discussed generics and wildcards. Today, we expand further on this topic by tackling the difference; when and why we should use the simple generic type, the non-bounded wildcard, the upper bounded wildcard and the lower bounded wildcard. Timestamps: 00:00 Introduction 00:27 Generics, Wildcards and Invariance 01:39 Invariance vs Covariance vs Contravariance 05:37 Producer Extends Consumer Super (PECS) 07:12 Wildcards with Return Types 08:07 Thanks for Watching! If you found this video helpful, check other Geekific uploads: - Object-Oriented Programming Fundamentals: https://youtu.be/Vfk6sExu8-4 - SOLID Principles and Best Practices: https://youtu.be/HoA6aZPR5K0 - Recursion Made Simple, Recursive Methods: https://youtu.be/r8KJ2AJWkHs - Use-Case and Sequence Diagrams: https://youtu.be/el501qi0KtI - What is a Thread? (Process, Program, Parallelism, Scheduler Explained): https://youtu.be/hN2Yrf4tqTY - Generics and Wildcards in Java Made Simple: https://youtu.be/vqjA6dqugq8 - Java's Stream API Explained with Examples: https://youtu.be/W1ddeJAuGA4 - Maps Implementation in Java (Chaining and Open-Addressing): https://youtu.be/q3Od_8fkUSI #Geekific #Generics #Wildcards #Invariance #Covariance #Contravariance

You May Also Like