Java Interface Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ย. 2024

ความคิดเห็น • 142

  • @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 TH-cam tutorials on it. Yours are easily the best out there, straight to the point and easy to understand.

  • @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 😊

  • @doctorpoverty9553
    @doctorpoverty9553 2 ปีที่แล้ว +5

    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

  • @parthjagtap5926
    @parthjagtap5926 8 หลายเดือนก่อน +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.

  • @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.

  • @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!!!

  • @i.j.5172
    @i.j.5172 2 ปีที่แล้ว

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

  • @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.

  • @matthew11092
    @matthew11092 4 ปีที่แล้ว +3

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

  • @CodeRay
    @CodeRay 4 ปีที่แล้ว +3

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

  • @leonardolima3936
    @leonardolima3936 4 ปีที่แล้ว +4

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

  • @mr.RAND5584
    @mr.RAND5584 4 ปีที่แล้ว +2

    You speak so crystal clear. Thanks 😊

  • @muhammudamine7376
    @muhammudamine7376 9 หลายเดือนก่อน

    Best Video at explaining Interfaces, Thanks

  • @socaljusticewarrior558
    @socaljusticewarrior558 2 ปีที่แล้ว

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

  • @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.^^

  • @guy8923
    @guy8923 ปีที่แล้ว

    When I need to revisit something your videos are perfect

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

  • @sethupathys641
    @sethupathys641 4 หลายเดือนก่อน

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

  • @vadrudnev
    @vadrudnev 3 ปีที่แล้ว

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

  • @uralslife
    @uralslife 9 หลายเดือนก่อน

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

  • @KRaJWanders
    @KRaJWanders ปีที่แล้ว

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

  • @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.

  • @rubasham8241
    @rubasham8241 2 ปีที่แล้ว

    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!

  • @ammarabdallah378
    @ammarabdallah378 4 ปีที่แล้ว

    hope to see more videos man you are such a legend

  • @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

  • @jamaka_me_code796
    @jamaka_me_code796 2 ปีที่แล้ว

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

  • @michaelantoni8323
    @michaelantoni8323 2 ปีที่แล้ว

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

  • @fastcomputer5927
    @fastcomputer5927 3 ปีที่แล้ว +2

    Nice keyboard sound
    :)

  • @christo4520
    @christo4520 4 หลายเดือนก่อน

    Dude you have a good content style

  • @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 TH-cam they are all toxic. I think it shows the kind the of people you attract when you are doing something great.

  • @obiudeze809
    @obiudeze809 10 หลายเดือนก่อน

    @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?

  • @kaifahsan8459
    @kaifahsan8459 4 ปีที่แล้ว

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

  • @bbb55590
    @bbb55590 2 ปีที่แล้ว

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

  • @brkeudunman
    @brkeudunman 3 ปีที่แล้ว

    Great Video to improve CS Skills

  • @khushiimalik
    @khushiimalik 4 ปีที่แล้ว

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

  • @martinrugadya4067
    @martinrugadya4067 4 ปีที่แล้ว

    This is super helpful, precise and clear

  • @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.

  • @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

  • @williaminfiesto2529
    @williaminfiesto2529 3 ปีที่แล้ว

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

  • @puppyspit8725
    @puppyspit8725 3 ปีที่แล้ว

    That was very receivable. Thanks for the info

  • @yourdailyfails1
    @yourdailyfails1 3 ปีที่แล้ว +10

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

  • @DespinaDimitriadou
    @DespinaDimitriadou 3 ปีที่แล้ว +2

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

  • @georgesavvatis1937
    @georgesavvatis1937 2 ปีที่แล้ว

    This was very helpful... thank you!

  • @rezafadillah5129
    @rezafadillah5129 2 ปีที่แล้ว

    Thank you broo, your explanation very detail

  • @everiguado5272
    @everiguado5272 3 ปีที่แล้ว

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

  • @swapnaligouda4600
    @swapnaligouda4600 4 ปีที่แล้ว

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

  • @PIRAKAS666
    @PIRAKAS666 2 ปีที่แล้ว

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

  • @matttwist9480
    @matttwist9480 2 ปีที่แล้ว

    Awesome video, thanks for making this.

  • @alimurtaza8275
    @alimurtaza8275 3 ปีที่แล้ว

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

  • @marouaneltaifi2926
    @marouaneltaifi2926 3 ปีที่แล้ว

    great work man loved the video keep it up !

  • @Duderantula
    @Duderantula 2 ปีที่แล้ว

    Thank you, great explanation.

  • @captainsloth5895
    @captainsloth5895 2 ปีที่แล้ว

    Great video, much appreciated!

  • @maddy3656
    @maddy3656 4 ปีที่แล้ว +2

    Thank you! I adore your videos. 🥰

  • @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.

  • @Nxtfbrdf
    @Nxtfbrdf 9 หลายเดือนก่อน

    Good teaching skills ❤

  • @maxd7228
    @maxd7228 4 ปีที่แล้ว

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

  • @yacoub3736
    @yacoub3736 4 ปีที่แล้ว +2

    Thanks, Brother!!

  • @boblewis1287
    @boblewis1287 3 ปีที่แล้ว

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

  • @kianreddy1295
    @kianreddy1295 3 ปีที่แล้ว

    amazing content brother

  • @adipurnomo5683
    @adipurnomo5683 3 ปีที่แล้ว

    Awesome explained ☺️

  • @daniellaerachannel
    @daniellaerachannel 4 ปีที่แล้ว

    sorry the off topic but what audio interface do you use with your bluebird mic? in your amazon gear is not present; thanks great video btw

  • @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)

  • @francescocassini7267
    @francescocassini7267 4 ปีที่แล้ว

    Great video! It was very clear!

  • @taurohkea2169
    @taurohkea2169 2 ปีที่แล้ว

    wow i feel enlightened

  • @facundomartinez615
    @facundomartinez615 3 ปีที่แล้ว

    Great explanation!!

  • @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!

  • @FarisSkt
    @FarisSkt 4 ปีที่แล้ว +1

    commenting to help the algorithm

  • @arnabmukherjee5840
    @arnabmukherjee5840 4 ปีที่แล้ว

    Bro awesome , please cover all basics by weekly videos 😎

  • @sammeester3514
    @sammeester3514 2 ปีที่แล้ว

    Great video, thanks!

  • @boblewis1287
    @boblewis1287 3 ปีที่แล้ว

    I gotta learn your key combo's

  • @murcielagoghost
    @murcielagoghost 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.

  • @antonignatenko7776
    @antonignatenko7776 2 ปีที่แล้ว

    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?

  • @donniegou9522
    @donniegou9522 3 ปีที่แล้ว

    Thank you very much, sir.☕

  • @morghayn
    @morghayn 4 ปีที่แล้ว

    Great tutorial!

  • @shx717
    @shx717 4 ปีที่แล้ว

    How about interfaces in Java 9 and how are they different from abstract classes in Java 9 since you can define functions too.

  • @saxontse
    @saxontse 3 ปีที่แล้ว

    thank you for video first, but you just mention about how to use interface. I am confusing of why and when to use interface, it is so hard to find useful material that can describe deeply on that

  • @adipurnomo5683
    @adipurnomo5683 3 ปีที่แล้ว

    Why don't you using composition object instead of interface

  • @bonicapatterson6943
    @bonicapatterson6943 3 ปีที่แล้ว

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

  • @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

  • @hadse1234
    @hadse1234 3 ปีที่แล้ว

    Is there any faster way to do this? like Eclips have

  • @eliy5550
    @eliy5550 ปีที่แล้ว +1

    GREAT VID

  • @evelyndavies1503
    @evelyndavies1503 4 ปีที่แล้ว +1

    Hi can u be a software engineer and a programmer at the same time, I need answers please.🙏🙏

    • @kaifahsan8459
      @kaifahsan8459 4 ปีที่แล้ว

      They're the same thing. There are very few Software Engineer roles if any that does not require programming.

  • @sarthakdalabehera3664
    @sarthakdalabehera3664 4 ปีที่แล้ว

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

  • @populouslove1425
    @populouslove1425 3 ปีที่แล้ว

    Wonderful, thank you.

  • @ivanjato4315
    @ivanjato4315 ปีที่แล้ว +1

    For the first part, the 'Creating an interface' part, you don't really need an interface for what you do... actually you are not even calling the interface at all... You are creating objects of ByTwos or ByThrees classes and calling the getNext method. I"m not sure what are you trying to explain here :(

  • @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.

  • @yasminenejjar6351
    @yasminenejjar6351 ปีที่แล้ว

    Thank youuu so much !

  • @davidorevic6651
    @davidorevic6651 ปีที่แล้ว

    Nice job!

  • @AnandKumar-no2ob
    @AnandKumar-no2ob 3 ปีที่แล้ว

    Amazing Man!!

  • @cestlezooicimw
    @cestlezooicimw ปีที่แล้ว

    I thought we couldn't put variables in interfaces

  • @iRoseRiyadh
    @iRoseRiyadh 4 ปีที่แล้ว

    can you make a video about AOP in java?

  • @patriciocastillo2772
    @patriciocastillo2772 3 ปีที่แล้ว

    Great content

  • @syedrizvi2687
    @syedrizvi2687 3 ปีที่แล้ว

    Thank you!

  • @AlienAndrew51
    @AlienAndrew51 3 ปีที่แล้ว

    Are Java repositories the same as interfaces?

  • @puthiyaulagam3780
    @puthiyaulagam3780 4 ปีที่แล้ว

    Is private access modifier allowed in interface?

  • @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