Generics in Java tutorial # 5 - Wildcards and subtyping in Generics | Java tutorials by Java9s

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 37

  • @636Bravo
    @636Bravo 6 років тому +3

    I went through full generic series and i am very thankful to you for getting the concept crisp and clear.

  • @ArmasReverence
    @ArmasReverence 8 років тому +6

    Very very good man, I have been having trouble with generics for a while, and now I understand!

  • @mingyan8081
    @mingyan8081 6 років тому

    This series is really helpful to understand how generics works and you will have a better understanding of the upper bound and lower bound of generic data type.
    Recommended for anyone who wants to learn this concept clearly.

  • @chaosLord2105
    @chaosLord2105 7 років тому +4

    Very Imformative video. Well done. One of my faviourite UA-camrs for Tutorials is Dereak Banas and hes really good, but you are on his level of explanation, your very under rated.

  • @poojabhatt2854
    @poojabhatt2854 4 роки тому

    very precisely explained and easy to grab generic wildcard concept

  • @tiruc
    @tiruc 8 років тому +1

    Thank you Srinivas really I like it. I have been trying to understand generics, so searing on web finally found your videos on youtube helps me to understand clearly about generics

  • @mukeshpatel4081
    @mukeshpatel4081 8 років тому

    best video ever you tart me this in matter of min something our lecture could not do. they just ended up making thing complected then it needed to be. thank you very much!

  • @atiqurrahman7260
    @atiqurrahman7260 3 роки тому +1

    Finally some great tutorial.
    Thanks a lot

  • @l.o2845
    @l.o2845 3 роки тому

    clear and thorough explanations, many thanks.

  • @hlonimalebana9896
    @hlonimalebana9896 3 роки тому +1

    I found this very useful

  • @abrehamish
    @abrehamish 4 роки тому

    Excellent explanations

  • @hai2uday
    @hai2uday 8 років тому +1

    Great video Srinivas on the Generics & you have explained so nicely . However, the example used (introduction part) to explain "why we need wildcards?", somehow i was not convinced .
    class Tray {
    public void add(Glass liquid) { .... }
    }
    can be achieved using Method type parameters like
    public class Tray {
    public void add(Glass liquid) {
    ............................
    }
    }
    It would be really great if you can please explain me with example, where exactly we would require wildcards ?

  • @anjim406
    @anjim406 8 років тому

    Srinivas thanks a lot for your time ..Commendable effort ..Please add if anything left on this topic ..

  • @ΑντρέαςΣωτηρίου-π8γ
    @ΑντρέαςΣωτηρίου-π8γ 7 років тому +3

    what is the differenes of list< T > with list< ? > ?

  • @niyongaboeric
    @niyongaboeric 7 років тому +1

    hi man ur video are understandable and well prepared

  • @darrenli3154
    @darrenli3154 5 років тому

    Thank you very much, your turorial is helpful to me

  • @debasishbiswas5012
    @debasishbiswas5012 3 роки тому

    Nice helpful video.

  • @varunshrivastava6845
    @varunshrivastava6845 6 років тому

    Very well explained

  • @SpiritOfIndiaaa
    @SpiritOfIndiaaa 5 років тому

    Thank you so much bro ...very nice.

  • @mcpaintcraft8709
    @mcpaintcraft8709 8 років тому +3

    What a great video, however, I did notice an error in one of your slides sir. At 17:22, Juice is declared as a class, yet is implemented by the OrangeJuice class?

    • @java9s
      @java9s  8 років тому +2

      +Mc Paintcraft yes. Thank you for pointing. Sorry for the mistake. It should be extends juice

    • @mcpaintcraft8709
      @mcpaintcraft8709 8 років тому

      java9s No problem!

  • @jredfoxminecraft
    @jredfoxminecraft 6 років тому

    why can't you make type parameters in the method itself seemed to work fine for me it's just more annoying to call the method as you have to specify which class every time you call the method in order to use it properly.
    public static void mix(ArrayList a)
    but, that method is hard coded unless it's an object method then do
    public void mix(ArrayList a) and it grabs it from the class itself
    Your Saying to do it like so which is better but still could be done either way
    public static void mix(ArrayList

  • @lilipoveda3505
    @lilipoveda3505 5 років тому

    Very good. Thanks.

  • @Mutex50
    @Mutex50 5 років тому +1

    Why do you even need an unbounded wildcard? What is the difference between:
    "Tray.add(Glass glass){}" and
    "Tray.add(Glass glass){}.

  • @pankajupreti8967
    @pankajupreti8967 8 років тому

    Nicely explained . Can you xplain Concurrency as well. Hope u ll do that also ina great fashion

    • @java9s
      @java9s  8 років тому

      +Pankaj Upreti thank you. If you are looking for multithreading concept please refer Multithreading in Java Tutorials by Java9s: ua-cam.com/play/PLkiVxfkxAYd1i9eX9X74eoTjKZXzvITMX.html

  • @roopamrajvanshi4724
    @roopamrajvanshi4724 4 роки тому

    this is great stuff

  • @danish6192
    @danish6192 6 років тому

    Beautiful, Really Can't thank you enough!

  • @mihirrajrajmihir
    @mihirrajrajmihir 4 роки тому

    Good work keep it up.

  • @Rohan122
    @Rohan122 3 роки тому

    Thank you so much🥰🥰🥰🥰

  • @MahadiHasanshimul
    @MahadiHasanshimul 5 років тому

    Thank You.

  • @vchirilov
    @vchirilov 5 років тому

    At 17:22 you written class OrangeJuice implements Jiuce{} which is wrong. Juice is a class so you should have OrangeJuice extends Jiuce{}.

  • @SaimanoharBoidapu
    @SaimanoharBoidapu 6 років тому

    Thank you sir.

  • @sayanpal4505
    @sayanpal4505 7 років тому

    nice tutorial

  • @sumeetkripalani2598
    @sumeetkripalani2598 4 роки тому

    Why cokediet is acceptable while cokegreen is not? they are both extending coke class??

  • @sreekanthvaddi1214
    @sreekanthvaddi1214 7 років тому

    nice