Java Generics Explained

Поделиться
HTML-код
  • Опубликовано: 20 дек 2024

Комментарии • 96

  • @onion013
    @onion013 3 года назад +63

    The sound of you typing is so blissful

    • @jingusbrule797
      @jingusbrule797 3 года назад +3

      I actually want to know what keyboard you used. Please tell us.

    • @aidzgaming7648
      @aidzgaming7648 3 года назад +1

      @@jingusbrule797 Ducky One with White Switches

  • @liudasstonys1293
    @liudasstonys1293 3 года назад +7

    We need more videos from you! You explain with all the logic behind the scenes, like nobody else. Really amazing!

    • @jack.hodkinson
      @jack.hodkinson  3 года назад +2

      Thank you :) I am working on more videos right now, with similar explanations. Are there any topics in particular that you'd like to see?

    • @AdityaGupta-zv4ib
      @AdityaGupta-zv4ib 3 года назад

      @@jack.hodkinson It would be great to see the implementation of some data structures and algorithms in java and maybe also on Wrapper Classes. Great Video btw, keep up the good work👍

  • @ramygatie3591
    @ramygatie3591 3 года назад +6

    Honestly, one of the best explanations of generics I've seen so far. This explanation even rivals the explanation by the alien king himself Telisko.

  • @8BitZ0mbie
    @8BitZ0mbie Год назад +1

    So many different examples. Thanks for the great video

  • @argjendrustemi6576
    @argjendrustemi6576 9 месяцев назад

    Man you should never stop posting! Amazing explanation!

  • @tbababauabbd2
    @tbababauabbd2 3 года назад +12

    great video! would love to see more of these.

  • @billiamreynolds
    @billiamreynolds 3 года назад +1

    I'm sure I just don't know where to look, but I could not find anything about generic type parameters on method calls. Thanks so much man this really helped me out!

  • @GuitarreroDaniel
    @GuitarreroDaniel 3 года назад +1

    Hands down to the best Java Generics video ever. Thank you very much!

  • @pugboi8017
    @pugboi8017 3 года назад +3

    I love your accent. Just to get in the spirit of things i’m going to make a cup of tea everytime i sit down to watch your videos. I don’t have crumpets but i suppose biscuits will have to do

  • @mikafaro
    @mikafaro 3 года назад

    Very concise and easy to follow. Helped me brush up on stuff I didn't delve into enough last semester.

  • @returncode0000
    @returncode0000 3 года назад +1

    More videos on core java please! You're one of the best teachers I've seen so far if not the best. Whats that IDE you use? This looks so clear, fantastic.

  • @anandchaudhary8952
    @anandchaudhary8952 3 года назад +1

    Heck! There's only one video on this channel?? I wanted more. If you want the youtube algorithm to help you then you gotta create more contents like this on regular basis and the subscribers will follow. Thanks for uploading

  • @premkarki2
    @premkarki2 9 месяцев назад

    You explain in a clearly and concisely. Thank you 🙏

  • @johnjustjohn9993
    @johnjustjohn9993 3 года назад +1

    Great explaination and pace. I hope to see more. Thank you very much

  • @anirudhvasistha6136
    @anirudhvasistha6136 3 года назад

    You did good man! looking forward for more videos.

  • @sebdickson7175
    @sebdickson7175 3 года назад

    Beautiful work. Asmr keyboard strokes

  • @gtasa4life
    @gtasa4life 2 года назад +1

    Amazing tutorial, thank you!

  • @TwstedTV
    @TwstedTV 3 года назад +3

    What plugins are you using to get your IDE to center like this, also for the error count on the top right?

    • @alienwarex51i3
      @alienwarex51i3 2 года назад +2

      Hearts but doesn't reply, that's cold.

    • @jack.hodkinson
      @jack.hodkinson  11 месяцев назад

      This is IntelliJ in presentation mode with the Gradianto theme
      www.jetbrains.com/guide/java/tutorials/presenting/presentation-mode/
      plugins.jetbrains.com/plugin/12334-gradianto

  • @mrindian7422
    @mrindian7422 11 месяцев назад

    Nicely explained thank you very much

  • @parkerfellows8010
    @parkerfellows8010 3 года назад

    Very nice explanation. Definitely do more topics in the future

  • @arandomzy
    @arandomzy 3 года назад +3

    Awesome video :) will you do more of such videos?

  • @johnarleevillarivera286
    @johnarleevillarivera286 3 года назад

    Great Video, Hope to see more

  • @boyplusminecraft
    @boyplusminecraft 2 года назад

    This video was very useful! Thank you for making it.

  • @TheMaxik
    @TheMaxik 3 года назад

    I hope you get to 5K subscribers soon. Don't give up.

  • @cinlung
    @cinlung 3 года назад +1

    Your explanation is awesome and easy to understand. I subscribed to you and hope you grow more.

    • @jack.hodkinson
      @jack.hodkinson  3 года назад

      Thank you! I really appreciate it

    • @cinlung
      @cinlung 3 года назад

      @@jack.hodkinson While you are here, can I ask something? Why do you put two returns in the method reverse in your video? --> private static List reverse(List original List). I thought the List is enough as the return statement? I made similar question in reddit since I wasn't sure if that reddit and this channel are managed by the same person. Thanks

    • @jack.hodkinson
      @jack.hodkinson  3 года назад +2

      @@cinlung List is the return type. The before that tells Java that the method has a generic type parameter.
      This wouldn't compile:
      private static List reverse(List originalList)
      If you don't include the first , Java wouldn't know what the T in List refers to

  • @pg23856
    @pg23856 2 года назад

    this was really helpful, thanks!

    • @jack.hodkinson
      @jack.hodkinson  2 года назад +1

      Glad you found it useful, my pleasure!

  • @saganawski
    @saganawski 2 года назад

    thanks man, this helped me out today

  • @Gorky25
    @Gorky25 3 года назад +1

    Nice video!
    What plans do you have for the next videos?

  • @alanmangroo3656
    @alanmangroo3656 3 года назад

    Nice concise video. Thanks.

  • @subhuvijay41
    @subhuvijay41 3 года назад

    Subscribed! Thanks and keep posting more videos.

  • @65opicw
    @65opicw 3 года назад

    I don't understand why it's so poorly explained at school. This helped me very much.

  • @PremkumarStephen
    @PremkumarStephen 3 года назад +2

    what IDE are you using?

    • @jack.hodkinson
      @jack.hodkinson  3 года назад +3

      This is IntelliJ in presentation mode with the Gradianto theme

  • @syahreva
    @syahreva 3 года назад +3

    Great video! will you make videos about oop, inheritance, polymorphism, encapsulation, and abstraction?

    • @jack.hodkinson
      @jack.hodkinson  3 года назад +3

      I've got so many videos I want to make :) I will cover those topics though

  • @TienNguyen-wb5ik
    @TienNguyen-wb5ik 3 года назад

    Your explaination so clear. Subscribed! Thank you so much!

  • @vip51000
    @vip51000 2 года назад +1

    Thanks for that

  • @4zmc
    @4zmc 3 года назад +5

    You explained this in such a simple and easy to understand way. It felt like Java Generics was just there to make java more difficult, but now it's obvious how generics actually makes coding easier and cleaner. Very high quality video as well. Thanks!

  • @nephie
    @nephie 3 года назад

    everything about this video is perfect 😍 thank you so much!

  • @SG-rb4bz
    @SG-rb4bz 3 года назад

    Awesome video! Thank you!

  • @venkatamuvva5567
    @venkatamuvva5567 2 года назад

    nice...and what model is your keyboard...sounds so nice

  • @Gru80
    @Gru80 3 года назад

    very well explained, thank you! that helped me a lot figuring out the missing pieces of my very own generics-puzzle :-)

  • @gj4king1
    @gj4king1 3 месяца назад

    I understand alot of the concept however my school is not teaching me anything.... what website would you suggest I go to strengthen my skills?

  • @losom5079
    @losom5079 3 года назад +2

    hey man, what keyboard do you have, and what switches?

    • @jack.hodkinson
      @jack.hodkinson  3 года назад +3

      The keyboard in this video is a Ducky One with white switches

  • @Fnaf-vh9cs
    @Fnaf-vh9cs 3 года назад +2

    subscribed so we push you to do more videos. "expectations"

  • @clement1370
    @clement1370 3 года назад

    Thanks Jack!

  • @jackohara3626
    @jackohara3626 3 года назад

    Good stuff. Up with this kind of thing.

  • @asnakeseyoum3109
    @asnakeseyoum3109 3 года назад

    what a great video! keep it up.

  • @pahanchathuranga3829
    @pahanchathuranga3829 3 года назад

    Nice and helpful video!

  • @vex6559
    @vex6559 2 года назад

    Well done.

  • @pushparajmanickam
    @pushparajmanickam 3 года назад

    Waiting for more videos🎥 ❤👌

  • @atiqurrahman7260
    @atiqurrahman7260 3 года назад

    you should have make an example on when to use super key word with generics

  • @akshatsidharth9080
    @akshatsidharth9080 3 года назад

    Would be able to explain the whole concept of generics which might be the genre of a FAANG interview?

    • @jack.hodkinson
      @jack.hodkinson  3 года назад +2

      I think this is a topic unlikely to be covered in a FAANG interview. More likely are questions on data structures and algorithms. I recommend checking out Clement who does great videos about FAANG interviews: ruclips.net/channel/UCaO6VoaYJv4kS-TQO_M-N_g
      Also LeetCode: leetcode.com/

    • @akshatsidharth9080
      @akshatsidharth9080 3 года назад

      @@jack.hodkinson thanks a lot for guidance..😊

  • @darrenleung3684
    @darrenleung3684 3 года назад

    Great video!

  • @njgarg
    @njgarg 3 года назад

    Awesome video..

  • @hotspur217
    @hotspur217 3 года назад

    Great explanation :clap

  • @jammandu
    @jammandu 3 года назад

    Still waiting for the new videos...🙏

  • @anooppednekar9816
    @anooppednekar9816 3 года назад

    You should make more videos on Java 😀

  • @fredoverflow
    @fredoverflow 3 года назад

    The background noise is quite distracting. I strongly recommend investing in a dynamic USB microphone.

    • @jack.hodkinson
      @jack.hodkinson  3 года назад

      Thanks for the feedback - by background noise do you mean the sound of typing, or something else?

    • @fredoverflow
      @fredoverflow 3 года назад +1

      @@jack.hodkinson No, the typing is music to my ears. I mean the constant humming and buzzing that is often audible in the background while you're talking. This is especially annoying with headphones. I even heard a car once :)
      Dynamic microphones (such as the Samsung Q2U, which I currently use) only record the voice and filter out most of the background noise.

    • @jack.hodkinson
      @jack.hodkinson  3 года назад

      Thanks for clarifying, that’s really helpful. The typing is recorded separately so I was wondering whether to keep it in or not. I like it, I think it adds something.
      I agree, I need to invest in a better microphone. I’m early on in this journey, hopefully soon I can justify purchasing one. I've just checked out your voice overs, the audio quality is really impressive. I'd love to get to that point myself.

  • @shawnsustrich7981
    @shawnsustrich7981 2 года назад

    I subscribed because this was a nice and concise video, but oh man that clickity clackity keyboard noise was going to drive me up a wall.

    • @jack.hodkinson
      @jack.hodkinson  2 года назад

      Thanks for the feedback! I’m working on improving the production value

  • @MauriceMutetiNgundi
    @MauriceMutetiNgundi 3 года назад

    Yes

  • @joachimdietl6737
    @joachimdietl6737 2 года назад

    Finally understood this shit :D

  • @kamalhm-dev
    @kamalhm-dev 3 года назад +1

    Subscribed! I like your style of teaching, please do check and unchecked exception

  • @CorDharel
    @CorDharel 3 года назад +1

    Just type "sout" and press Tab or Enter and you don't need to type "System.out.println()" all the time

    • @jack.hodkinson
      @jack.hodkinson  3 года назад +1

      Thank you :) I use loggers instead of System.out in day to day life so I didn’t know that

    • @CorDharel
      @CorDharel 3 года назад +1

      @@jack.hodkinson Me too :) Still very handy. By the way here is an extra one: Typing "psmv" gives you a "public static void main" ;-)

    • @jack.hodkinson
      @jack.hodkinson  3 года назад

      @@CorDharel That one I knew!

  • @ahmetkarakartal9563
    @ahmetkarakartal9563 3 года назад

    while(true)
    System.out.println("Thank you");