Java Tutorial # 19 | Interface in Java – Java Beginners Tutorial by Java9s

///Java Tutorial # 19 | Interface in Java – Java Beginners Tutorial by Java9s

Java Tutorial # 19 | Interface in Java – Java Beginners Tutorial by Java9s

FavoriteLoadingAdd to favorites

Interfaces are simple but these play a very important role in Projects in promoting the loose coupling. This video tutorial explains about the all the things that you should know about the Interfaces in Java. Interfaces have abstract methods and their fields marked as public, static and final by default. I have explained the importance of the Interface with an example and how the interfaces provide a IS-A relationship for the concrete classes

source

Java468x60
By |2021-02-18T12:26:58+00:00February 18th, 2021|Java Video Tutorials|29 Comments

29 Comments

  1. sree sree February 18, 2021 at 12:27 pm - Reply

    🤣🤣

    🤣

  2. sree sree February 18, 2021 at 12:27 pm - Reply

    🤣

  3. Nick Cooley February 18, 2021 at 12:27 pm - Reply

    all interfaces are abstract unless you use a default class….

  4. Ender Kumbaraci February 18, 2021 at 12:27 pm - Reply

    1) "private final static int age" in Animal interface –> the access modifier should be public instead of private
    2) void eat() in Lion class –> the access modifier should be public since we can not assign weaker access privileges than its parent class.
    3) private abstract void eat() { … } in HerbivorousAnimal class —> can be either "public void eat() { … } " or "public abstract void eat();"

  5. sumit sharma February 18, 2021 at 12:27 pm - Reply

    english m atak ra h.english class join kr le tbi fayda h ye java sawa ka b …

  6. Jesus February 18, 2021 at 12:27 pm - Reply

    I wanted to find some nice tutorials but instead im here listening to Ajit Pai himself

  7. Menace2Reality February 18, 2021 at 12:27 pm - Reply

    TIL Obama requires implements

  8. GeekTechZone February 18, 2021 at 12:27 pm - Reply

    Great explaining. Thanks man!

  9. Tarun Goswami February 18, 2021 at 12:27 pm - Reply

    Very Basic. Seems like school teacher is teaching us. No real world examples. Just a copy from a book. This video is not for professionals. Better to read Herbert Schildt. Waste of 20 min.

  10. Sourav Mazumder February 18, 2021 at 12:27 pm - Reply

    @java9s please! let me know, my answers are correct or not.
    1. in animal interface field age must be public or default so that implicitly it is set to public by the compiler.
    2. In herbivorousAnimal class method eat is errorful. If it is abstract then the body should not be there and access modifier should be public in order to allow overriding.
    3. In class Lion, the overriding error is present because of using weaker access modifier in the subclass.

  11. Martina S February 18, 2021 at 12:27 pm - Reply

    Great, thanks!

  12. Java Pro February 18, 2021 at 12:27 pm - Reply

    Best explanation in the net. Thanks

  13. Eve985 February 18, 2021 at 12:27 pm - Reply

    Great examples and explanation

  14. Andrzej Kasperek February 18, 2021 at 12:27 pm - Reply

    So far your videos are the best one I found. Thank you soo much for your help and please continue your work!

  15. chirag soni February 18, 2021 at 12:27 pm - Reply

    Nice practice….
    Sir can u explain me that if a class is abstract its method may or may not be abstract so tell me if the extended version of the class is not happy with the old method then we make the old method abstract but what happens when a class itself is abstract but its method are not

  16. Mani Theja February 18, 2021 at 12:27 pm - Reply

    Explaination was really good !! Please use IDE's like Eclipse/Net Beans for writing code. It could be best approach

  17. midribs February 18, 2021 at 12:27 pm - Reply

    ohhh boring dude 🙂 make shorter next time.

  18. Prathamesh Rane February 18, 2021 at 12:27 pm - Reply

    interface contains abstract methods only right but we can write main method with implementation in it. how?

  19. Todd Schock February 18, 2021 at 12:27 pm - Reply

    I Hate Obama, could you use a different example?

  20. Farhan Utshaw February 18, 2021 at 12:27 pm - Reply

    Error : abstract class CarnivorousAnimal can't be extended

  21. Rosnawati Awang February 18, 2021 at 12:27 pm - Reply

    very good tutorial. thank you very much

  22. Joseph Kreifels II February 18, 2021 at 12:27 pm - Reply

    can an interface implement another interface?

    if fourWheeler implements vehicle, than car only needs to implement fourWheeler

  23. Joseph Kreifels II February 18, 2021 at 12:27 pm - Reply

    A president does not need to be a politician. And I am not sure about the father thing too.

  24. Sagnick Ghosh February 18, 2021 at 12:27 pm - Reply

    you earned urself a subscription.

  25. anju barasiya February 18, 2021 at 12:27 pm - Reply

    I don't agree sir…!

    Interface has nothing to do with Inheritance.
    yes, you can accomplish multiple inheritance by interface….but,
    INTERFACE is about to contracts or protocols for behaviours…

    sir, you must concentrate about behaviour of interface, rather than implemetation..

  26. Baharul Islam L February 18, 2021 at 12:27 pm - Reply

    Sir!! have Gone through many videos about Java. But nothing competes Your's. You have awesome Teaching Style and way of Explanation.!

  27. The Precise Developer February 18, 2021 at 12:27 pm - Reply

    Can i suggest that you write the script before you record your videos and that you edit them before uploading. You have good knowledge of the concepts but the style of the video is just making it impossible to understand.

  28. Larry Liu February 18, 2021 at 12:27 pm - Reply

    Great explanation!!! Samples are clear and accurate!!!

  29. MQ. February 18, 2021 at 12:27 pm - Reply

    Great Explanation. Bravo (Y).

Leave A Comment

*