Java Interface Tutorial

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

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

  • @KeepOnCoding
    @KeepOnCoding  4 года назад +4

    ☕Want to master Java? Get my complete Java course: bit.ly/42mQlXE

  • @tannerbarcelos6880
    @tannerbarcelos6880 4 года назад +68

    Amazing. Truly, I love java. Interfaces alone sell me on the language sooooo much. So damn powerful. Your videos help a lot man! 2 semesters left till I graduate from cal state east bay! Been grinding my java and python and using your leetcode videos to really help. Keep it all up, your content is very real and useful.

    • @KeepOnCoding
      @KeepOnCoding  4 года назад +6

      Keep it up!

    • @tannerbarcelos6880
      @tannerbarcelos6880 3 года назад +10

      @jaquino94 class of 2021! Done in literally 26 days!

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

      @@tannerbarcelos6880 Good luck!

    • @pure4lyfe5
      @pure4lyfe5 Год назад

      @@tannerbarcelos6880 hey care to report?

    • @cedric182
      @cedric182 Год назад

      did you finish? did you persist? did you find a job??@@tannerbarcelos6880

  • @phoenix78240
    @phoenix78240 Год назад +1

    Out of all the videos I’ve been looking at on explaining interface your video is by far the easiest to understand. Thank you for that.

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

    I been learning Java for the past year and have watched A LOT of RUclips tutorials on it. Yours are easily the best out there, straight to the point and easy to understand.

  • @venkateshnambi1576
    @venkateshnambi1576 3 года назад +9

    I was struggling to learn some concept's and i regret that i am so late to watch this video. Fundamentals cleared. Thanx.

  • @doctorpoverty9553
    @doctorpoverty9553 2 года назад +4

    The most in-depth video. At first, it seemed complicated. But after watching a few times, I have realized that this video actually covers more than 10 credit hours worth of college classes in one 15-minute video. Excellent job man. You are a life saver

  • @BN-cr3el
    @BN-cr3el 4 года назад +38

    The way you explain it is... I can’t even describe but I learn very quickly and I learn a lot in few short minutes. In class, we spent 3 hours learning about interfaces and I was still confused. Thank you 😊

  • @Gohel95
    @Gohel95 4 года назад +9

    this was super.... Please keep making such good content it helps too much .....
    and your way of explaining is just awesome first some theory and then code.

  • @i.j.5172
    @i.j.5172 2 года назад

    this was genuinely the BEST video I have seen on interfaces. Complete explanation.. thankyou!

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

    Literally the first minute of this video explained better what an interface does than the entire book I have to study from. I just didn't understand the point of them. THANK YOU!!!

  • @matthew11092
    @matthew11092 4 года назад +3

    Learned a lot from your videos, your explanations make sense and are straight to the point

  • @parthjagtap5926
    @parthjagtap5926 11 месяцев назад +1

    00:01 Interfaces in Java allow separation of class interface from its implementation.
    01:37 Implementing Java Interface requires implementing all provided methods
    03:27 Classes can implement multiple interfaces
    05:20 Java interfaces can switch between different class implementations dynamically.
    07:11 Variables can be declared in an interface.
    09:11 Interfaces in Java can be extended to create sub interfaces.
    11:03 Understanding default and static methods in Java interfaces
    13:01 Java 9 introduces private methods within interfaces.
    Crafted by Merlin AI.

  • @leonardolima3936
    @leonardolima3936 4 года назад +4

    Great explanation! You speak english clearly, It was easy to understand

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

    This channel is tight. Because of you and Coding with John, I've basically become a PHD in computer science.

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

    When I need to revisit something your videos are perfect

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

    your videos are like a survival kit, whenever i feel like a topic is too heavy because my professor didn't explain it well, a video of yours pops up and it never fails to give me back hope and make me understand! can't thank you enough!

  • @CodeRay
    @CodeRay 4 года назад +3

    Awesome video man! Wish I knew this when I was in AP comp sci

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

    Even me whos English isn't that well do understand it by far better than guys in my language are explaining it, by your way of explaining stuff.
    You are really calm and on point with your style of explaining it. Respect and thanks.^^

  • @mr.RAND5584
    @mr.RAND5584 4 года назад +2

    You speak so crystal clear. Thanks 😊

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

    HI Sam , too good to see u explaining the clear concept

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

    Here during my Final, I just finished part 1 on abstract using comparable. was uncertain how interfaces work. part 3 is generics and I'm pretty good at it. Thanks dog you helped me pass this probably with an A :)

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

    This is great quality material\, my guy. You definitely earned my sub.

  • @KRaJWanders
    @KRaJWanders Год назад

    One of the best explanation of interfaces. Worth every second ❤❤ Thanks @keepOnCoding

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

    Thanks! I had troubles understanding how to use interfaces. This video saved me a lot of time.

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

    Best Video at explaining Interfaces, Thanks

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

    I'm learning Java now and the way you explain it really amaze me. Thanks a lot your a big help. new subscriber here.

  • @KD-vg2yn
    @KD-vg2yn 3 года назад

    What a great tutorial. Thank you man. Also, I think it's so funny, on productive channels like this, the comment sections tend to be so nice and not toxic. But in all other comment sections on RUclips they are all toxic. I think it shows the kind the of people you attract when you are doing something great.

  • @ammarabdallah378
    @ammarabdallah378 4 года назад

    hope to see more videos man you are such a legend

  • @kaifahsan8459
    @kaifahsan8459 4 года назад

    Great video. Like how you explained a lot of key aspects of interfaces with clarity.

  • @shoxie95
    @shoxie95 Месяц назад

    6:20 - Polymorphism in action - ability to execute different behavior, for different objects types, which are determined at the runtime.

  • @sethupathys641
    @sethupathys641 7 месяцев назад

    Thank you. Can't believe how much youtube teaches me

  • @christo4520
    @christo4520 6 месяцев назад

    Dude you have a good content style

  • @khushiimalik
    @khushiimalik 4 года назад

    Very well structured and easy to follow. I was having trouble with interfaces. Thanks!

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

    Thanks, this is a very clear explanation and it helped me understand interfaces a lot more!

  • @martinrugadya4067
    @martinrugadya4067 4 года назад

    This is super helpful, precise and clear

  • @dane-c7g
    @dane-c7g 3 года назад

    Great video, much appreciated!

  • @uralslife
    @uralslife Год назад

    That's awesome job, man. I'm declaring that from Russia, we don't have such a clear interface explanation even in paid cources

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

    Wishing you had a Spring Boot tutorial 😅 appreciate your content for sure

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

    Wow I never understood interface until I saw this tutorial and might i say it really came handy ass am writing a text this coming week

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

    Nice keyboard sound
    :)

  • @marouaneltaifi2926
    @marouaneltaifi2926 4 года назад

    great work man loved the video keep it up !

  • @maddy3656
    @maddy3656 4 года назад +2

    Thank you! I adore your videos. 🥰

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

    Awesome video, thanks for making this.

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

    This was very helpful... thank you!

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

    Thank you very much. It was extremely helpful. Good luck.

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

    Thank you broo, your explanation very detail

  • @ahmedababneh7089
    @ahmedababneh7089 4 года назад +2

    Please can you make a video that talk about the first step should I take to become a java developer, what should I learn and how many month it will take.
    Sorry for my English.

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

    Very nice. Appreciate the effort.
    Also so much better than that over the surface trash Lee is uploading.

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

    Great Video to improve CS Skills

  • @francescocassini7267
    @francescocassini7267 4 года назад

    Great video! It was very clear!

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

    Great video, thanks!

  • @Gohel95
    @Gohel95 4 года назад +1

    can you please make the next video on the collection ... because I have seen many tutorials but I think only you can clear concepts of collection.

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

    Thank you, great explanation.

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

    That was very receivable. Thanks for the info

  • @eliy5550
    @eliy5550 Год назад +1

    GREAT VID

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

    wow i feel enlightened

  • @swapnaligouda4600
    @swapnaligouda4600 4 года назад

    you are so cool, man! please make videos on the complete java collection framework and data structures and algorithms.

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

    Great explanation!!

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

    amazing content brother

  • @Nxtfbrdf
    @Nxtfbrdf Год назад

    Good teaching skills ❤

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

    Awesome explained ☺️

  • @yacoub3736
    @yacoub3736 4 года назад +2

    Thanks, Brother!!

  • @DespinaDimitriadou
    @DespinaDimitriadou 4 года назад +2

    Great video! Can you do one for abstract classes as well?

  • @CarlosVasquez1
    @CarlosVasquez1 4 года назад

    OK. but it seems like your conflating class and interface. In the portion (around 3:25) where you are explaining implementing interfaces and extending classes you are saying "implement class" and "extend class". Is this the correct wording? Is there a difference between an interface and a class? More importantly, are there different rules when implementing an interface vs implementing a class? Can be a bit confusing if not used to the terminology and rules yet.
    tx,
    -C

  • @yasminenejjar6351
    @yasminenejjar6351 Год назад

    Thank youuu so much !

  • @yourdailyfails1
    @yourdailyfails1 4 года назад +10

    we all know what " more stuff " he bought on Saturday night , with private method

  • @samueletamburrini9420
    @samueletamburrini9420 4 года назад

    Man really awesome, but im struggling in 5:14 when you talking about creating variables istantiating interfaces. When you reference the interface istantiated to another object (in this case ob=byTwos) you are modifying also the other class (byTwos) or just the interface istantiated? Dont know if I made myself clear.

  • @obiudeze809
    @obiudeze809 Год назад

    @keepOnCoding Great Vid! It seems the use of inheritance in sub-classes and the use of interface implementation in classes are kind of similar. Are there any situations where you would use one or the other?

  • @AnandKumar-no2ob
    @AnandKumar-no2ob 3 года назад

    Amazing Man!!

  • @davidorevic6651
    @davidorevic6651 Год назад

    Nice job!

  • @icengiz73ff93
    @icengiz73ff93 2 месяца назад +1

    Awsome!!

  • @morghayn
    @morghayn 4 года назад

    Great tutorial!

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

    You are everything!!!!!!!!!!!! Thank you!!!!!!!

  • @numero8035
    @numero8035 4 года назад

    Great Video

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

    Thank you!

  • @patriciocastillo2772
    @patriciocastillo2772 4 года назад

    Great content

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

    Thank you for this very useful tutorial about interfaces, I'm getting started with it and now default methods in interfaces classes are clear to me.

  • @Channel-iu6de
    @Channel-iu6de 3 года назад

    very good, thank you.

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

    Wonderful, thank you.

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

    Amazing, i'm mexican it's easy to understand you

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

    Awesome!

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

    weirdly i tried to go along the video and do the same in Intelj Idea i made sure everything was the same even names of the class and interfaces, but i got errors in places where there werent in the video , like overrriding printStuff method , it highlights the parameters like there's a mistake , what could be the issue?

  • @FarisSkt
    @FarisSkt 4 года назад +1

    commenting to help the algorithm

  • @arnabmukherjee5840
    @arnabmukherjee5840 4 года назад

    Bro awesome , please cover all basics by weekly videos 😎

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

    Thank you

  • @maxd7228
    @maxd7228 4 года назад

    Have you thought about making a Java course? Excellent explanation.

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

    Thank you!!!!

  • @rosameliacarioni1022
    @rosameliacarioni1022 4 года назад

    THANKS A LOT !

  • @msh104utube
    @msh104utube 4 года назад +1

    When would one choose to use Interfaces over. Abstract classes, and vice versa?

    • @aureliuse3469
      @aureliuse3469 4 года назад +2

      I think abstract class is use, if you want to make that class contain abstract method and method with implementation, but interface use only to share abstract method without implementation to other class only and share final static variable.
      Beside that the different is in a class we can extend 1 abstract class only, but otherwise in a class we can implement many interface. So if you want to make 2 superclass with 1 subclass use interface, and if you want to make 1superclass and 2 subclass use abstract class, i think that is the analogy of the hierarchy.
      CMIIW iam also learning java interface tq

  • @escrimo23
    @escrimo23 4 года назад

    Great video! This is a really side question, but what are your thoughts on developing mobile apps using Flutter(Dart) or Android Studio (Java)

  • @a.p5332
    @a.p5332 4 года назад

    thank you soooo much!!!!

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

    I gotta learn your key combo's

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

    Can you do a video on intellij keyboard combo s especially the useful ones? Ty dawg

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

    Thank you very much, sir.☕

  • @medhaniegebru2120
    @medhaniegebru2120 4 года назад

    AMAZING!

  • @pzmt8051
    @pzmt8051 14 дней назад +1

    parent class/ children class;
    super class/ sub class;

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

    Everytime when i see this "default" method i fell like what is the "suger coating" done on it. I never found any answer on it. You know what i men, the default access / non-access modifiers

  • @sarthakdalabehera3664
    @sarthakdalabehera3664 4 года назад

    Bro make more videos in Java. Your videos are quite interesting to watch :-)

  • @zhihaohuang273
    @zhihaohuang273 4 года назад

    Could you explain how the method "public void mousePressed(MouseEvent e)" was written? Is there a way to add functionalities to a method in an interface? Thank you!

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

    I like the idea of "real-world examples". In my internship things were much easier to accomplish because the goals were clear. College doesn't do that. Not in my experience.