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

Опубликовано: 23 Июль 2022
на канале: 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


Смотрите видео Generics and Wildcards in Java | Part 2 | Invariance vs Covariance vs Contravariance | Geekific онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Geekific 23 Июль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 13,499 раз и оно понравилось 529 людям.