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

КОМЕНТАРІ • 18

  • @josemlucero7589
    @josemlucero7589 11 місяців тому +4

    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! 🤓

  • @svalyavasvalyava9867
    @svalyavasvalyava9867 2 роки тому +5

    Of course we all will be waiting for the next chapters on this topic! 😎
    Thank you once and once again for everything you do!

    • @geekific
      @geekific  2 роки тому

      Thanks a lot for the support :)

  • @returncode0000
    @returncode0000 Рік тому +3

    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 👍

    • @geekific
      @geekific  Рік тому +3

      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

    • @orekichitanda1566
      @orekichitanda1566 Рік тому

      hello can you please elaborate on what type of project you were working on ?

  • @fredxu3709
    @fredxu3709 Рік тому

    Such a great explanation! Truly a lifesaver.

  • @ebuzertahakanat
    @ebuzertahakanat 5 місяців тому +1

    this video extends super

  • @MrMak1
    @MrMak1 Рік тому

    Great content, thank you!

  • @theunusual4566
    @theunusual4566 7 місяців тому

    This is an Excellent Explanation..woow

  • @Soggycardbored
    @Soggycardbored 3 місяці тому

    So helpful

  • @TechOnScreen
    @TechOnScreen Рік тому

    gr8 channel , good work.

  • @mariuspet89
    @mariuspet89 Рік тому

    Finally I understood generics 😅

  • @kabilans4810
    @kabilans4810 2 роки тому +1

    @7:04 summary ❤️

  • @MrSubandrio
    @MrSubandrio Рік тому

    super bro..

  • @giorgos8292
    @giorgos8292 Рік тому

    what exactly do you mean with consuming and producing @7:04 ?

    • @geekific
      @geekific  Рік тому

      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 :)