Tricky questions on Java Interface | java interview questions and answers for experienced / Freshers

preview_player
Показать описание
In this video we will discuss some important interview questions on java interface. As Interface is one of the building blocks for java oops , it is obvious that we can except some java interview questions on this concept.

This video covers various topics like ; java Abstract classes Vs Interfaces comparison , default method, multiple inheritance, diamond problem related to multiple inheritance and some tricky java interview questions and answers related to interface / abstract classes (oops).

Timestamp
---------------------

00:00 - Introduction
03:56 - Abstract class
07:43 - Multiple Inheritance Issue
11:14 - What is java diamond problem ?
15:40 - Introducing Interface for multiple Inheritance
18:04 - Ambiguous Variable Issue with Interface
22:58 - Ambiguous Method ( Multiple Inheritance with Interface)
27:29 - Java 8 new feature - Default Method
36:58 - Calling Default Method in Java 8 +
36:58 - Default Method and Multiple Inheritance
51:09 - Java interview questions on Default method priority (Interface Vs Class)

Resources :
If you are new to Spring , please check my spring core, spring mvc, spring mvc intermediate, spring jdbc,spring security playlist on this channel.They all are FREE FULL COURSE and you need them as prerequisite.
If you already have some spring basics, You can take the below paid course On Spring Framework to enhance your skill set.

LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers

Watch Spring boot Hot topics

Java Interview / Question and Answer series

Explain spring Bean Lifecycle

spring core

spring mvc

spring mvc intermediate

Spring JDBC

spring live project

SPRING SECURITY COURSE[NEW]

For more courses visit

Any time you are getting stuck with issues, Feel free to ask for support.

you can ping me on my Facebook page

Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"

you can ask for support in my website forum

Subscribe to my youtube channel

Follow me on Insta
Рекомендации по теме
Комментарии
Автор

Hello, Abhilash sir, big fan of you. I watched all your videos and it’s really amazing. You know what, I wanted to switch my carrier from IT due to lack of coding skills . Then I found your Videos on YouTube from spring core to spring mvc (session scope, request scope and many more basic concepts you explained in best way), spring security and now spring could. In next six months I became most valuable performer in my project and promoted to next level. All credit goes to you sir, keep it up for us 😊.

VikashKumar-ttwm
Автор

I have watched nearly all of video on your channel, maybe I have addicted the way you explained. Please make more and more video ❤❤❤❤

nguyenquan
Автор

That's the difference between a experienced person and a fresher one. I have seen your video on interface and abstract classes, but this lecture helps me to know exact need of the interfaces.
Being a fresher I always have the mindset to learn and learn. And trust me whenever I saw your video I really got to know lots of new concepts.... Thanks for sharing your love and experience with us.✨
On 17 Jan I have an interview at ICL and I am just revising the concepts for that.
Thankyou so much.❤️

sarthaksrivastav
Автор

Kudos to your teaching style.
Abhilash.
More than frameworks basics must be strong so that we can work upon any frameworks.
Thanks for bringing this video.

azharaktherk
Автор

Amazing way of teaching concepts and i learnt a lot of concepts in single video .Thank you

TheRebelMe
Автор

That was an amazing video kudos to you 👏👏
while focusing on Spring, Microservices ..we sometimes forget our basic concepts.

danceayush
Автор

I don't know why it happens....Me aapki video ek topic seekhne ke liye aata hoon or me 4 topics seekh kr jata hu. Feels lucky while watching your videos that i found your channel. Thank you so much😇🥰

chintu
Автор

I really love your way of explanation and the knowledge you share. A Big Thank you Abhilash 🤝 Can you please make a series on Data Structures and Algorithms. 😊

koripellyindukumarreddy
Автор

Thanks Abhilash! You are doing commendable job in explaining the concepts along with code.

NBJavaDev
Автор

Please make a vidio on composition and aggregation

_ritiksharma
Автор

You are the best...thank you so much for this🙏🙏

yatendra__singh
Автор

Hi Abhilash, at 38:40, calling default method from random non-static method( inside hello(){} ), we can directly write default method name, instead of super keyword because this call is implementing only single interface. so, it can be -
public void hello() {
m2();
}
Am I correct?

sunitasingh
Автор

thank you abhilash for making such valuable videos..plz make more videos regarding core java interview questions

ajaygosavi
Автор

interface A{
int a = 10;
}
class Test implements A{
public static void main(String[] args) {
A.a = 20;
System.out.println(A.a);
}
}

Ans : Compile Time error because by default vars of an interface are public, static and final.

pushpendrapundir
Автор

Happy new year sir 🎉 great to see you again

pradipchoudhari
Автор

Your lecture are so interesting that while like the class get the priority over default method same your lecture takes the priority over my sleep 🥱❤

All_In_
Автор

Good explanation sir, kindly make static method in interface too.

DebabratS-cu
Автор

I have watched most of your videos and all of them are super good.Even if videos are on simple topics you explain them so well covering all tricky questions. Especially your videos of mock interviews are so good .All the detailed and from scratch explanation does make complicated concepts easier to learn.All your videos has helped me build my concepts more stronger.Please make more videos on interview questions and answers and also a series of spring boot learning. :)

rameshwarirane
Автор

Sir your explanation ❤️.. please continue this series

himanshupujari
Автор

please make videos on Design Patterns it will be more helpfull

rameshbhivare