Ram Kris Hi Ram, even If we don't have any abstract method in our class still we can define it as abstract. If I don't want anybody to create the object of my class then I can define it as abstract..
Good explanation !! Also one important reason why abstract class has constructor is to achieve constructor chaining. As we know the sole purpose of abstract class is to be extended. Now in any sub-class when object is created and initilized the first call under its constructor is call to super () i.e call to super class constructor and so abstract class has constructor. So if you don't keep any constructor explicitly then jvm keep one default constructor to abstract like other normal class. A constructor chaining goes till Object Class.
Best Instructor at Best time . Currently I am trying to switch company your videos conatins most of those questions with best answers(Indian Version). Feels like entire Java interview questions at one place . Thanks is a small thing :D
Thanks very much for this video. No offense, but when I saw that you were Indian, I almost didn't watch. I have a problem with accents at my age, you see. Anyway, because your accent wasn't that thick, I struggled through, and I'm glad I did. Yours is probably the best video on TH-cam for explaining interfaces and Abstract classes. Everybody else just parrots what they've heard in other videos. Thanks again, I plan to watch more.
Interface used for two purposes in real-time projects 1)to achieve multiple inheritance (1:M) 2)to hide internal implementation And interface means you are providing user to access these methods only from implemented methods ,user cannot access non overriden method try it yourself Interface is like from one stone two birds are fallen.😅 Ok bookish right general example like TV having covering all mother board internal connection but interface on off buttons volume buttons are interface only these things using we can interfer with TV so we are hiding internal implementation showing only services (on off vol+ vol-) take other examples think on it ex(Bluetooth speaker , computer etc) So interface is nothing big topic,it means what are the things user can access that's only we can make it interface implement of that class method and make it access other methods don't implement by interface those methods are not important to access to user (like mother board user not access from TV class so don't implement it and interface reference variable can't access )or security purpose we may call ,one object(user) interface with other object interface(TV or camera etc).
Hello Brother, I have gone through all the videos of Selenium Express. These videos helped me a lot. Thanks for your these much effort, and now i want to learn the spring boot. Can you please upload series of Spring boot.
Great explanation...i searched lot of material for findings the difference but you have given best explanation at very point to point info....well done!!!
Hi Abhilash, thank you for such a clear explanation, I think at 16:47 you meant B(int i){ this.i = i} while creating a constructor in the abstract class B, but you have typed A(int i) instead of B.
thats a good explanation. now i am understand the difference between abstact class and interface................. good job ..... keep make a video like this
Hi Abilash, In one of the interview, one of the question asked to me, the question is, can u explain about your project architecture, I somewhat manage with the component has in my project, it is spring mvc project, runs on WebSphere server, it has view component, DAO component for db queries and controller component etc but what is the best to answer it, could you please answer to me.
Gud! video but i recommend u will please relate any kind java video real time project explanation no need to common definition bcz these are definition already lot of tutorial are available and these technique to make in unique to other tutorial and video channel
I didn't know we could declare methods with a body in an interface or variables in an interface. I have no idea about Java but in Csharp that is not allowed. In C# you only declare abstract methods, i.e method without a body. So, the only benefit is that interfaces allow multi-inheritance, which is good, while abstracts don't. But abstract classes can contain properties, non abstract methods as well as abstract methods. Is that right? Good video, thanks a lot.
Great bro but I have one doubt, After Interface in Java 8, it has both implementation and abstract method then why do we need Abstract class now? Is it a replacement for Abstract class?
No. we need an abstract class because it's not possible to create a non-static, non-final, non-public variable in an interface. plus it's not possible to create a constructor in an interface. Where we can do this all in an abstract class.
Nice bro. thumbs up (go to 5:55 and make some correction you made both abstract method.)
Great Catch Brother. Glad you found the mistake.Thank you.
Cant we declare abstract method inside abstract class ?
Yes you can....In fact if we have one method as abstract then the class needs to be defined as abstract..
Ram Kris
Hi Ram, even If we don't have any abstract method in our class still we can define it as abstract.
If I don't want anybody to create the object of my class then I can define it as abstract..
So if i have abstract class i cant create object of respective class ?
This is how it should be explained! Every segment is explained and covered with an example, well done. No time wasted here.
Finally someone who knows how to explain things, well done!
What he is telling is theory , not at all connected to technical
You are a disaster brenner
@@arch3994 stfu moron, and keep your hateful comments with you we don't need that here...
Finally came to know the clear the difference between Abstract and Interface. Thanks bro.
Best video about the interface and abstract class. so glad to watch it.
Awesome Explanation keet it going 👍
Nice,superb...................................................................................................................................................
Super Guru jee
Wow this is the best explanation for interface and abstract class. Thank you so much.
Thanks for sharing
Awesome
In Java 8 : Functional interface is an interface that contains only one abstract method.
Content 🙏💥💥💥
Good one. (at 16:50 the constructor and class name mismatching.)
Ur concepts are crystal clear ........ This is the best video abt abstract classes and interafaces. Keep it Up ...... God bless you and ur family
Good explanation !! Also one important reason why abstract class has constructor is to achieve constructor chaining. As we know the sole purpose of abstract class is to be extended. Now in any sub-class when object is created and initilized the first call under its constructor is call to super () i.e call to super class constructor and so abstract class has constructor. So if you don't keep any constructor explicitly then jvm keep one default constructor to abstract like other normal class. A constructor chaining goes till Object Class.
Maqsood bhai tum boht acche se samjha ta hai !! thank u
Superb
Very well explained
Nice explanation
Good explanation
Well done . Thank you for the clear explanation.
Fantastic explain thank you You are Spark 🔥
excellent
Wow, really your are amazing 👏
Why dislike to this video..disliker please give explanation?? Your videos are very helpful dude👌👌
Nice
Sweet
Best Instructor at Best time . Currently I am trying to switch company your videos conatins most of those questions with best answers(Indian Version). Feels like entire Java interview questions at one place .
Thanks is a small thing :D
This is how it should be explained. Crisp and yet detailed. Thanks for making this man 👍🏽👌🏽
Awesome explanation brother
Spectacular explanation 👍 supperrrb
great teacher
Very clear explanation
I like this channel very much Abhilash will teach very easiest way !!!!Thank you😇😇😇
Seriously this is top class i literally lost 3 interviews because of this question but this time i confident to answer
Great 👍
NIce tutorial provide with Thread and Multithreading Concept tutorial with real time example
Wow
you are just awesome teacher
Thanks very much for this video. No offense, but when I saw that you were Indian, I almost didn't watch. I have a problem with accents at my age, you see.
Anyway, because your accent wasn't that thick, I struggled through, and I'm glad I did. Yours is probably the best video on TH-cam for explaining interfaces and Abstract classes. Everybody else just parrots what they've heard in other videos.
Thanks again, I plan to watch more.
thanks...you are so cool.very clear explanation
Best video Bro ❤️❤️
Super man, well explained
Thank you it made scense today for me!
Interface used for two purposes in real-time projects
1)to achieve multiple inheritance (1:M)
2)to hide internal implementation
And interface means you are providing user to access these methods only from implemented methods ,user cannot access non overriden method try it yourself
Interface is like from one stone two birds are fallen.😅
Ok bookish right general example like TV having covering all mother board internal connection but interface on off buttons volume buttons are interface only these things using we can interfer with TV so we are hiding internal implementation showing only services (on off vol+ vol-) take other examples think on it ex(Bluetooth speaker , computer etc)
So interface is nothing big topic,it means what are the things user can access that's only we can make it interface implement of that class method and make it access other methods don't implement by interface those methods are not important to access to user (like mother board user not access from TV class so don't implement it and interface reference variable can't access )or security purpose we may call ,one object(user) interface with other object interface(TV or camera etc).
Hello Brother, I have gone through all the videos of Selenium Express. These videos helped me a lot. Thanks for your these much effort, and now i want to learn the spring boot. Can you please upload series of Spring boot.
yes you are correct, because constructor should have the same name as class name.
Well explained bro, Thank you so much..... keep doing more videos..... 👌
Nice explaination for everything..
you are explaining very clearly brother thank you...
Very informative video. Thank you
Nice explanation keep it up.
Great explanation...i searched lot of material for findings the difference but you have given best explanation at very point to point info....well done!!!
This video is very very helpful
Hi Abhilash, thank you for such a clear explanation, I think at 16:47 you meant B(int i){ this.i = i} while creating a constructor in the abstract class B, but you have typed A(int i) instead of B.
Best video in youtube ever, thank you for helping me understand.
Superb explanation... Thank you
Absolute legend, thank you for the wonderful lession!
Good info..Thank you
Thank you Uma..
Great video
Very nice explanations ...
better bro
man, thanks a lot for spendng time explaining and editing the video in a way that is so simple to follow along and understand
your teaching style is very well it help me to cleared about abstract class and interface thanks sir
thats a good explanation. now i am understand the difference between abstact class and interface................. good job ..... keep make a video like this
greeat video man, after many tries to understand, this served me the best.
Thanks allot
Very helpful 👍
16:52 constructor name is different than class name.
Wonderful explanation
nice tutorial, loved it
nice man.. thanks for your time explaining others
Very nice Video. Thanks a lot. Was very helpful for understanding
Hi Abilash,
In one of the interview, one of the question asked to me, the question is, can u explain about your project architecture, I somewhat manage with the component has in my project, it is spring mvc project, runs on WebSphere server, it has view component, DAO component for db queries and controller component etc but what is the best to answer it, could you please answer to me.
nice video, keep up the great work
Great explanation! Thank you so much!!!
awesome bro
Gud! video but i recommend u will please relate any kind java video real time project explanation no need to common definition bcz these are definition already lot of tutorial are available and these technique to make in unique to other tutorial and video channel
Thanks
I didn't know we could declare methods with a body in an interface or variables in an interface. I have no idea about Java but in Csharp that is not allowed. In C# you only declare abstract methods, i.e method without a body. So, the only benefit is that interfaces allow multi-inheritance, which is good, while abstracts don't. But abstract classes can contain properties, non abstract methods as well as abstract methods. Is that right? Good video, thanks a lot.
This is really a very good explanation and very good information.. Thank you so much
nice explanation bro thanks
Great bro but I have one doubt, After Interface in Java 8, it has both implementation and abstract method then why do we need Abstract class now? Is it a replacement for Abstract class?
No. we need an abstract class because it's not possible to create a non-static, non-final, non-public variable in an interface. plus it's not possible to create a constructor in an interface. Where we can do this all in an abstract class.
superb
Rocking description
Bro ,ur way of teaching really super and very clear and ur English was fluently bro, keep it up bro👌👌👌👌👌👌👌👌👍👍👍👍👍👍💐💐💐💐💐
good job....just one suggestion pls try to make more videos on conceptual topics of core java which mainly clear basic concepts.
Thanks a lot for this , i was so confused in these concepts , but you helped a lot thanks a lot bro
you are great thnx
great explanation im searching for it
Thank you for help to learn
Thank you for your good work. I really enjoy watching your videos and I always learn something.
Very useful,, easy to understand.
Please go next class with dagger 2 dependency injection
11:33 not only abstract class doesn't support multiple inheritance but any class
Thank you very much for the video
Ragith Thomas you are welcome 😊
thanks
Well done. Keep it up bro.
Best video.....but I didnt understand why the need to declare variables inside an interface ....and why they are final and static ?
please can you do Hash Set internal mechanism video
Thank you so much that was really clear