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

Geekific
Geekific
12.6 هزار بار بازدید - 2 سال پیش - Support us on Patreon:
Support us on Patreon: Patreon: Geekific
Discord Community: Discord: 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
2 سال پیش در تاریخ 1401/05/01 منتشر شده است.
12,660 بـار بازدید شده
... بیشتر