Java Interfaces Explained - 040

preview_player
Показать описание
What is a Java interface?. It's a contract that states any class implementing this interface can be typed as the interface and it guarantees the methods listed in the interface will be implemented. So let's talk about how interfaces work, and how we can use them in our applications.

#java #programming #tutorial





Full transcript:

Concepts: Java, interfaces, defender methods, functional interfaces, marker interfaces

Social Links: Don't hesitate to contact me if you have any further questions.

Hosted by DJ Spiess

Related Videos:

What are static factory methods in Java? - 036

Free Java Course Online

Media credits: All images are owned by DJ Spiess unless listed below:

Music
Рекомендации по теме
Комментарии
Автор

Starting a programming video with a real world example. You nailed it.
Beginners usually understand how to use interfaces, however, get confused or find it hard to understand the PURPOSE of using interfaces. This video explains the purpose. Great content.

harshulpandav
Автор

Am I the only one who is still confused

tristanlee
Автор

Your video has enlightened me. Thank you for explaining the differences between abstract classes and interfaces. It was very unclear to me before but after watching your video, it all makes total sense now! Great videos! Keep 'em coming!

NelsonSteffens
Автор

I love the amount of detail you include in your videos. I am learning java so I can pass the Oracle exams and hopefully become a professional programmer. Coding is my favourite hobby besides playing the guitar so it would be amazing to actually get paid for doing something that I love doing. Thank you so much for taking the time to make these videos, it is really helping me.

RedEyedJedi
Автор

Straight to the point. That's how all others need to start their videos too.

skyhigh
Автор

I'm afraid that interfaces is a complex subject to be handled in a single video, yet this video was great as a tutorial/introduction to interfaces.

JorgeEscobarMX
Автор

Thank you for the video. Helped me a lot when creating interfaces for one of my applications. You made this two years ago but it is still helping people like me out :)

jeremiahnji
Автор

I would say that this is an informative video and the example of the self-driving cars you mentioned at the beginning of the video made the point of interfaces clear. Thanks very much

victorejiofor
Автор

This makes so much more sense then where I read about it before, and under ten minutes too!!!

thecallitaspadechannel
Автор

I appreciate the practical explanation of the contexts of using interfaces vs abstract classes. Thanks!

waverunzzz
Автор

Great explanation, I loved that the video not too long despite the amount of detail.

romer
Автор

This video was short and packed with lot of useful information. Love your videos... Thank you.

KayVirals
Автор

Thank you for this video. Helped me understand interfaces better!

adrianperez
Автор

Nice explanation. But the biggest difference and an advantage of using interface over abstract class; is that an interface will allow developers to do multiple inheritance which might be needed in certain scenarios. And now that we can have method definitions inside interface we must use interface whenever possible.

In 3:59 the instructor says the code will not compile due to ambiguity of two default methods, but he missed to mention that it can be resolved by overriding the implementation of default method wakeDJUp() in the MyCar class, effectively clearing out the ambiguity. Interfaces are really very powerful now. I will shortly post a code on github which explains this.

But in all the the explanation is really nice, simple and precise. Thanks!

aashutoshtaikar
Автор

Awesome video, now I understand these concepts better. Thanks so much

biodunkehinde
Автор

This is a good explanation subscribed!

dantepillon
Автор

Sir! You are awesome .. I'm feeling blessed that I found you :)

amitrawat
Автор

I can see your point in 6:20, forcing another developer to understand your inheritence design will cause problems. Interfaces are free of that level of commitment and still work as intended.

JorgeEscobarMX
Автор

Thank you very much, it is amazing information 🌸🌸

ghaliahabukhrs
Автор

Thanks man, you are doing awesome work!

Kobe