Generics and Wildcards in Java | Part 2 | Invariance vs Covariance vs Contravariance | Geekific
Вставка
- Опубліковано 19 лип 2024
- Support us on Patreon: / geekific
Discord Community: / discord
GitHub Repository: 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-Oriente...
- SOLID Principles and Best Practices: • SOLID Design Principle...
- Recursion Made Simple, Recursive Methods: • What is Recursion? | R...
- Use-Case and Sequence Diagrams: • UML Use-Case and Seque...
- What is a Thread? (Process, Program, Parallelism, Scheduler Explained): • What is a Thread? | Th...
- Generics and Wildcards in Java Made Simple: • Generics and Wildcards...
- Java's Stream API Explained with Examples: • Java Stream API Explai...
- Maps Implementation in Java (Chaining and Open-Addressing): • Map Implementation in ...
#Geekific #Generics #Wildcards #Invariance #Covariance #Contravariance
Sincerely, i dont understand why this kind of videos has only a few of Likes.. I'd like to think these are so cool that people finish, got hooked by the next suggested Geekific video, jump right into it and forgets the Like! GREAT JOB! 🤓
Of course we all will be waiting for the next chapters on this topic! 😎
Thank you once and once again for everything you do!
Thanks a lot for the support :)
I urgently need more videos on generics because we make heavy use of them in our project. Superb content, you're videos have great value 👍
Glad you liked it! More are on the way, stay tuned :) Feel free to check our Part 1 Generics video here: ua-cam.com/video/vqjA6dqugq8/v-deo.html
hello can you please elaborate on what type of project you were working on ?
Such a great explanation! Truly a lifesaver.
this video extends super
Great content, thank you!
This is an Excellent Explanation..woow
So helpful
gr8 channel , good work.
Finally I understood generics 😅
@7:04 summary ❤️
super bro..
Glad you liked it :)
what exactly do you mean with consuming and producing @7:04 ?
Please watch the video from: 5:38 to 6:24, as that is exactly what we try to explain and let me know if you still have doubts :)