Java Interface Tutorial – Learn Interfaces in Java

///Java Interface Tutorial – Learn Interfaces in Java

Java Interface Tutorial – Learn Interfaces in Java

FavoriteLoadingAdd to favorites

Free preview of my Java course:

Java468x60

An interface in java is a list of variables and methods that you use to make a class by doing class x implements y.

Learn java in just 13 minutes:

An interface in java is just an outline for a class. Anything in the interfaces, like variables and methods, has to be in the class that uses it.

Java interfaces can be tricky at first… But SURELY you’ll get it 🙂 If you followed along, congrats! You learned by-doing!

I hope you enjoyed this tutorial on interfaces in java! I like to have a nice mix of java tutorials and actual projects for you all 🙂

Was this able to help you learn interfaces in java? –

Free tips and programs:

Recommended Channels to Subscribe to
Career Karma:
TheNewBoston:

~

(2nd channel)

Alex Lee

source

By |2020-08-05T08:42:40+00:00August 5th, 2020|Java Video Tutorials|45 Comments

45 Comments

  1. ilejovcevski79 August 5, 2020 at 8:42 am - Reply

    Please make a video about the use of interfaces when solving the inheritance problem in java. I think it's what they are used for the most.

  2. A Raging Default August 5, 2020 at 8:42 am - Reply

    Who else hits the like button before watching 🙂

  3. Stephanie Choo August 5, 2020 at 8:42 am - Reply

    Hi Alex, Love your clear and concise videos. Just wondering what's are the main differences between interfaces and abstract classes? When would you use one over the other? I'd love another video that would explain that more in depth. Thank you.

  4. Kushal Galrani August 5, 2020 at 8:42 am - Reply

    Bro is the variable color static or is it an instamce variable

  5. yolo lifestyle August 5, 2020 at 8:42 am - Reply

    Me: clicks first tutorial from searches
    Youtuber: "Hey, Im Alex, please subscribe"
    Me: "woah woah we just met bro"

  6. Immanuel Kant August 5, 2020 at 8:42 am - Reply

    Interface can not be instantiated directly but can be used as type by upcasting its subclass

  7. Bearz_ftw August 5, 2020 at 8:42 am - Reply

    Bro, this kid makes me laugh every single time

  8. Jeffrey Rodríguez August 5, 2020 at 8:42 am - Reply

    public class IWillReportThisChannel [
    System.out.println(I didn't understand)

  9. Jack Mccabe August 5, 2020 at 8:42 am - Reply

    Whats the difference between using an Interface and inheriting methods from an abstract class?

  10. james hancock August 5, 2020 at 8:42 am - Reply

    Can you (perhaps in your new series) cover how to use an interface to communicate between say a fragment and the fragments listview which has a customArrayAdapter which typically hosts the OnClickEvents. New developers then get trapped not able to call methods back in the fragment

  11. Mohammed ALSadoon August 5, 2020 at 8:42 am - Reply

    You are awesome.. keep up the good work ❤❤🔥🔥🤟🤟

  12. BlitzBladeRR August 5, 2020 at 8:42 am - Reply

    It all clicked when you said an interface it more of a guideline or template. It is not necessary but more useful for setting up a new class that 'inherits' variables and needs these methods defined in its own class.
    Thank you

  13. Gratiani Marincu August 5, 2020 at 8:42 am - Reply

    OMG, your explanation is so much better than pretty much everything I have seen in regards to interfaces, thank you so much.

  14. Brabbelback August 5, 2020 at 8:42 am - Reply

    Your keyboard sounds unbelievably satisfying!!! What is it?

  15. lazy macs August 5, 2020 at 8:42 am - Reply

    You just explained how to use it but not why and when to use it. I'm still confuse.

  16. Naomi Ok August 5, 2020 at 8:42 am - Reply

    I tried to learn Java with many different videos and had hard time understanding it. You explain everything so easy! I learned so much from you. Thank you so much <3

  17. Тамрико August 5, 2020 at 8:42 am - Reply

    Hi Alex! Love you videos. Could you please make a video about SUPERCLASSES and INTERFACES. Do not see any difference between them. Thank you again! 🙂

  18. neotokyo August 5, 2020 at 8:42 am - Reply

    Can you override the blue attribute to your own custom color

  19. Siddhi Gupta August 5, 2020 at 8:42 am - Reply

    Lee, you're amazing!! Get back on your channel RIGHT NOWW!

  20. Siddhi Gupta August 5, 2020 at 8:42 am - Reply

    Hi, Could you please make a video on path and classpath?

  21. LL C August 5, 2020 at 8:42 am - Reply

    Thank you for the great video ! 🙂 Do you have any videos on non-static vs static and public vs private?

  22. Blue S P August 5, 2020 at 8:42 am - Reply

    So you cannot implement methods in interfaces but you can with attributes?

  23. Harsh Raj Always free August 5, 2020 at 8:42 am - Reply

    So interfaces are useful to make libraries ?

  24. VISHAL PAWAR August 5, 2020 at 8:42 am - Reply

    You have insightly explained Alex….I got it understood very well…nice try.

  25. Chloe Fair August 5, 2020 at 8:42 am - Reply

    Alex thank you so much for all the wonderful videos you have helped me so much on topics that I only halfway understand. After watching your videos I always feel like a more confident beginning coder

  26. Muluh Muluh August 5, 2020 at 8:42 am - Reply

    What this guy does is unbelievable…He makes things too easy to be true

  27. postnubilaphoebus96 August 5, 2020 at 8:42 am - Reply

    Although that's certainly a good explanation, I would have like if you also explained the reason behind interfaces. That is, why do we need interfaces when we have abstract classes?

  28. Deziqn-_-Beast O August 5, 2020 at 8:42 am - Reply

    Thank you sir. My professor was rambling for 45 minutes and couldn’t explain what you explained in 6 minutes

  29. jamil busari August 5, 2020 at 8:42 am - Reply

    Can an interface be run as a separate program?

  30. karim nabilsi August 5, 2020 at 8:42 am - Reply

    Thank you so much, Alex, you are a great person to come back to when not understanding things about coding, although you can dive deeper into these things in other videos, I am still thankful that you are here to help. I hope one day you become a well-known channel that many people come for help to.

  31. Gaiger harr August 5, 2020 at 8:42 am - Reply

    it took me 3:49 minute to understand interface thank you.

  32. Alexander ThePerson August 5, 2020 at 8:42 am - Reply

    Is there a situation where you can only use interface and not an abstract class?

  33. Other side of Life August 5, 2020 at 8:42 am - Reply

    Thank you Alex lee.
    But i suggest you to be a lil gentle when ypu giving example.
    Instead of poops and dogs. You can use some better names that suits the education system.

  34. Firdaus Naz August 5, 2020 at 8:42 am - Reply

    Thank you Alex. It was a helpful content. But, if i have two interfaces, how will i write both the interfaces in the same class?

  35. Jason Zhu August 5, 2020 at 8:42 am - Reply

    I'm taking AP Comp Sci right now and your videos really do help. Thank you!

  36. Eurotool August 5, 2020 at 8:42 am - Reply

    Huh why are 360p and 1080p available but not 720p

  37. - 23 August 5, 2020 at 8:42 am - Reply

    5 seconds into the video and it gets a like from me

  38. Δημήτρης Λυγίρης August 5, 2020 at 8:42 am - Reply

    Hi, interesting and understated topic. Please upload a new video explaining Interfaces and Polymorphism which is the real purpose of interfaces. e.g. instead of referencing straight to the class to be able to reference to the interface.

  39. Ayanfe-Oluwa Idowu August 5, 2020 at 8:42 am - Reply

    Please can you make a vid on functional interfaces and lambdas? Thank you so much!

  40. Omar Erbil August 5, 2020 at 8:42 am - Reply

    thx

  41. Allison Crenshaw August 5, 2020 at 8:42 am - Reply

    Do you have any videos that cover lambdas? I haven't seen any but could be missing it

  42. Hassan Yaqub August 5, 2020 at 8:42 am - Reply

    You are the Alex Wassabi of Programming

  43. Ntlakuso Lonia Mashaba August 5, 2020 at 8:42 am - Reply

    I understand CSC with your videos.

  44. NiftyGuru August 5, 2020 at 8:42 am - Reply

    Please make a video on generics also. Thanks.

  45. Jagic Yooo August 5, 2020 at 8:42 am - Reply

    What's the difference between:

    WaterBottleInterface ex = new InterfaceExample();
    and
    InterfaceExample ex = new InterfaceExample();

Leave A Comment

*