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

Published: 23 July 2022
on channel: Geekific
13,499
529

Discord Community:   / discord  
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:    • What is Object-Oriented Programming? ...  
SOLID Principles and Best Practices:    • SOLID Design Principles with Java Exa...  
Recursion Made Simple, Recursive Methods:    • What is Recursion? | Recursion Made S...  
Use-Case and Sequence Diagrams:    • UML Use-Case and Sequence Diagrams Ma...  
What is a Thread? (Process, Program, Parallelism, Scheduler Explained):    • What is a Thread? | Threads, Process,...  
Generics and Wildcards in Java Made Simple:    • Generics and Wildcards in Java | Part...  
Java's Stream API Explained with Examples:    • Java Stream API Explained with Exampl...  
Maps Implementation in Java (Chaining and Open-Addressing):    • Map Implementation in Java | Implemen...  

#Geekific #Generics #Wildcards #Invariance #Covariance #Contravariance


Watch video Generics and Wildcards in Java | Part 2 | Invariance vs Covariance vs Contravariance | Geekific online, duration hours minute second in high quality that is uploaded to the channel Geekific 23 July 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 13,499 times and liked it 529 visitors.