Difference between Interface and Absract Class

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • Java interview questions and answers on abstract class , Interface with examples.
    Learn:
    What is abstract class?
    What is interface?
    What is the use of abstract class and interface?
    When to use Abstract class and when to use interface?
    What is the difference between abstract class vs interface?
    ~~~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    www.youtube.co...
    Follow me on my Facebook Page:
    / naveenqtpexpert
    Let's join our Automation community for some amazing knowledge sharing and group discussion:
    t.me/joinchat/...
    Access and learn Api Automation:
    vimeo.com/onde... Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    www.youtube.co...
    Follow me on my Facebook Page:
    / naveenqtpexpert
    Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
    t.me/joinchat/...
    Paid courses (Recorded) videos:
    Java & Selenium Course: www.naveenautom...
    API Course: www.naveenautom... ➡️Get Our Courses✔️
    📗 Get My Paid Courses at
    Paid courses (Recorded) videos:
    Java & Selenium Course: www.naveenautom...
    API Course: www.naveenautom...
    -------------------------------
    ✔️SOCIAL NETWORKS
    Facebook: / naveenqtpexpert
    Twitter: / naveenkhunteta
    Blog: www.naveenautom...
    --------------------------------
    Support My Channel✔️Or Buy Me A Coffee
    Paypal: paypal.me/nave...
    Google Pay: naveenanimation20@gmail.com
    --------------------------------
    ✔️Thanks for watching!
    देखने के लिए धन्यवाद
    Благодаря за гледането
    感谢您观看
    Merci d'avoir regardé
    Grazie per la visione
    Gracias por ver
    شكرا للمشاهدة

ความคิดเห็น • 142

  • @donamathew1749
    @donamathew1749 4 ปีที่แล้ว +47

    I am trying to learn Java for the longest time. Never got the concepts clear. You have been a life saver for me. I don't feel the need for any other tutorial now. The way you teach is the most perfect I have seen. Thanks a Ton!!! Please continue this great work....

    • @hareeshjp
      @hareeshjp 3 ปีที่แล้ว +1

      same with me.

    • @jabariterrence4539
      @jabariterrence4539 3 ปีที่แล้ว

      I know im asking the wrong place but does anyone know of a tool to get back into an instagram account..?
      I was stupid lost my password. I appreciate any tips you can give me!

  • @oludamilareolukotun1783
    @oludamilareolukotun1783 4 ปีที่แล้ว +16

    I have never see any any explanation as clear and co concise as this. you are a great teacher

  • @truthlover3522
    @truthlover3522 6 ปีที่แล้ว +6

    Even many Java experienced guys find it difficult to explain difference between interface and abstract class, they just keep on reiterating interface and java but miss the clean explanation, but the way you explain with such a clarity , WOW., first time ever seen such convincing explaination.

  • @sureshm2047
    @sureshm2047 4 ปีที่แล้ว +3

    I have been watching since 3 yrs about abstract and interface but no one has given clear cut and didn't understand but first time my doubts gone by watching this extraordinary video

  • @sanghamitrabhowmicklive3013
    @sanghamitrabhowmicklive3013 3 ปีที่แล้ว +1

    I don't even know how to thank you. The way you explain concepts, I don't think I have ever seen someone like you. Hats off to you!!

  • @venkateshandea1767
    @venkateshandea1767 6 ปีที่แล้ว +30

    Hey naveen ...i really appreciate your work...one requenst from my side make a video on ....where we use all these concepts in selenium....i.e abstraction, polymorphism, overriding, overloading, encapsulation ...etc...thanks

    • @deeepzzz
      @deeepzzz 2 ปีที่แล้ว +1

      It's the same. You just need to learn java and oops concepts and you can work in selenium (or even in any oop programming language once you learned it well).
      (I know it's late answer, but may be useful for others)

  • @spsingh4297
    @spsingh4297 6 ปีที่แล้ว +7

    Excellent explanation for guy like me who is a beginner, Plus Naveen's accent is very Neutral and not like other people videos who says yeight to 8. Wish you billion subscribers

  • @maheshappala3150
    @maheshappala3150 6 ปีที่แล้ว +4

    The way of teaching is excellent naveen .i am new to java but i am understanding quickly and i am also watching your selenium videos.Your voice is very clean without any disturbance.thanks naveen for uploading videos

  • @apoorvabhavsar1645
    @apoorvabhavsar1645 6 ปีที่แล้ว +6

    Awesome videos, I have learned it around 8-9 years ago as a theory but this video made the idea crystal clear. Just love your teaching abilities. Keep it up and huge thanks for all your videos.

  • @sathiyaasothana9905
    @sathiyaasothana9905 3 ปีที่แล้ว +1

    You are doing great man really don't stop this many of them are getting their career with your help...Their is no words to explain and thanks for all you efforts

  • @RajuSingh-lt8cd
    @RajuSingh-lt8cd 5 ปีที่แล้ว +3

    I dint know anything about java yesterday.Now ,it seems I know almost everything with concept in one day.
    Excellent Naveen sir.Benefit ratio is 100% in one day.
    Best tutorial found on 1st day of my java learning.
    Thanks.

  • @oshadigodage29
    @oshadigodage29 3 ปีที่แล้ว +2

    Best explanation so far about the abstract class and interface, Thank you Sir

  • @vikrampatil1340
    @vikrampatil1340 5 ปีที่แล้ว +2

    Very nice video with clean and clear explanation.
    At first I thought it is very long but after watching it completely, I understood that 30 mins are actually required in clarifying the concept.
    Thanks Naveen.
    I really like your videos and I am going to recommend it to my friends as well :)
    Keep up the great work.
    Love from NZ

  • @kaushikyadav5284
    @kaushikyadav5284 5 ปีที่แล้ว +2

    Now i can not forget difference between this 2 topics thanks Naveen

  • @deepakrai5175
    @deepakrai5175 3 ปีที่แล้ว +1

    most simple and clear video of Abstact classes and interfaces.
    Thanks !!

  • @Sandeep11067
    @Sandeep11067 3 ปีที่แล้ว

    You made build interest in Coding stuff, Otherwise i didnt have much interest towards Programming, Now i am Loving this. Thanks.

  • @ankitkhusabu
    @ankitkhusabu 6 ปีที่แล้ว +2

    One of the best vedio on interface and abstract ever watched

  • @faizanhussain1879
    @faizanhussain1879 5 ปีที่แล้ว +3

    Great .... I take the java concept to fulfill my PHP work ..Thanks for the explanation sir

  • @user-kz7sf5dz5v
    @user-kz7sf5dz5v 2 ปีที่แล้ว +2

    I am new to learn Java. I was so much confused understanding difference between interface and abstract class thanks Naveen you cleared my confusion. Really appreciate your honesty in sharing knowledge. By the I new to your channel as well. I need help with Array if can help me or share the link if already have a video on.

  • @devimedisetti9317
    @devimedisetti9317 5 ปีที่แล้ว +3

    Clean and understandable explanation, thank you Naveen

  • @manimaranvaradharajan4073
    @manimaranvaradharajan4073 3 ปีที่แล้ว +1

    Its Very Cleared about Interface and Abstract. Thanks Buddy.

  • @papridutta2336
    @papridutta2336 2 ปีที่แล้ว

    Thank you Naveen for explaining so well the concepts of Interface and Abstract class.You are gem

  • @hemlatamehra7409
    @hemlatamehra7409 6 ปีที่แล้ว +5

    excellent video naveen...could you please provide soft copy for all java interview Qu and ans.

  • @achaljain15
    @achaljain15 4 ปีที่แล้ว +5

    Thanks, Naveen for such amazing videos which are clearing almost all my doubts, As soon as the question pops in my mind, You explain it the very next minute in the video. Great teaching skills. I hope, I recall all of it well in my interviews! :)

  • @mariabajwa8632
    @mariabajwa8632 5 ปีที่แล้ว +1

    thankyou , its amazing ,all concepts are crystal clear.

  • @venthangowthamsivakumar5510
    @venthangowthamsivakumar5510 3 ปีที่แล้ว +2

    Awesome explanation Naveen

  • @sakshiranu
    @sakshiranu 2 ปีที่แล้ว

    Excellent teaching, Be my Mentor Naveen🙏

  • @neelimacse2012
    @neelimacse2012 5 ปีที่แล้ว +2

    thanks for the video..its very useful to know the diff btn both....

  • @bhagyashreeulhe3232
    @bhagyashreeulhe3232 6 ปีที่แล้ว +2

    Thanks sir..very informative video ...this question was asked in interview

  • @mohammeduneab8991
    @mohammeduneab8991 6 ปีที่แล้ว +1

    Awesome your videos are helping alot..your way of explanation is really nice and gives a clear understanding

  • @grvlal
    @grvlal 6 ปีที่แล้ว +1

    Thank you Naveen for sharing the knowledgeable video.

  • @khushbooraikwar8210
    @khushbooraikwar8210 3 ปีที่แล้ว +1

    One of the best video, Thankyou Naveen!

  • @sandhiya7781
    @sandhiya7781 5 ปีที่แล้ว +3

    Great explanation ...reallly osam

  • @harishpandey3267
    @harishpandey3267 6 ปีที่แล้ว +1

    Superb Explanation.....thanks a lot Naveen

  • @wolfgangbenfattoum8137
    @wolfgangbenfattoum8137 5 ปีที่แล้ว

    excellent video. most demonstrations regards interfaces lack precise explanations. I took me a long time to grasp as well. What needs to be shown is what happens at the dot operator when using either an interface as refernece type or the class as reference type. that way you can see what methods are available as soon you press the dot. cool stuff.

  • @bedaradurugaiah494
    @bedaradurugaiah494 10 หลายเดือนก่อน

    Excellent concept was explained by Naveen super

  • @indrajitbhattacharjee8204
    @indrajitbhattacharjee8204 6 ปีที่แล้ว +2

    nice explanation just a suggestion can add an example from selenium perspective

  • @chandankorde3544
    @chandankorde3544 3 ปีที่แล้ว

    Thanks a lot Naveen sir ....clearly understood the concepts..pls make sure It will be available to us always... thank u so much sir..

  • @RaviKumar-lc3bf
    @RaviKumar-lc3bf 4 ปีที่แล้ว +1

    Hai naveen .. I like your classes very much. In the interview for QA they are asking how interface and abstract use in selenium.
    This type of questions are little hard to reply. can you please tell us OOps concepts and also where OOPs will use in selenium

  • @karthikmurale
    @karthikmurale 6 ปีที่แล้ว +1

    Thanks Naveen .. i am searching for this topic in your videos

  • @elinamdoraashley882
    @elinamdoraashley882 3 ปีที่แล้ว

    Good! was really struggling with the difference btn Abstract class and Interface....Thanks soo much for this video

  • @anithachimbili105
    @anithachimbili105 2 ปีที่แล้ว +2

    Hi Naveen, I wanted to learn selenium with Java, kindly let me whether you are giving training, Also let me know if you r teaching realtime

    • @naveenautomationlabs
      @naveenautomationlabs  2 ปีที่แล้ว

      yes refer this : naveenautomationlabs.com/selenium-training/

  • @lokeshbisht438
    @lokeshbisht438 3 ปีที่แล้ว

    Perfect way to understand abstraction and interface. Really enjoying your videos.

  • @pradyumnnasatapathy8199
    @pradyumnnasatapathy8199 6 ปีที่แล้ว +1

    Thanks a lot Naveen sir for this detailed information

  • @abhilashmt6161
    @abhilashmt6161 6 ปีที่แล้ว +3

    what about the static and default methods in the interfaces, which are non abstract methods right?

  • @vidulabhat
    @vidulabhat 4 ปีที่แล้ว +2

    Thanks Naveen. Amazing clarity I got. Just have one query.. if all the methods in an abstract class are abstract, does it perform better than interface?
    If yes, what is the use of interface...as abstract class is achieving the same thing with better performance.
    Does interface do anything, which abstract class cannot do?

    • @aniruddhvale
      @aniruddhvale 4 ปีที่แล้ว +1

      i think a class can implement multiple interfaces but it cannot extend more than one abstract class. It cannot do multiple inheritance with Abstract class. So this might be the difference.

  • @anandkumar-qj2zw
    @anandkumar-qj2zw 5 ปีที่แล้ว +1

    why is it that we can't create abstract classes without any abstract methods ? I did not got any errors while doing so..

  • @abhilashadeshpande7996
    @abhilashadeshpande7996 ปีที่แล้ว

    Thank you naveen.. your videos are always life saver for me.. I have a question, can u pls tell me which is the abstract class in the selenium library.. ?? In every interview i am getting this question..

  • @traghavendra9828
    @traghavendra9828 6 ปีที่แล้ว +2

    Hi Naveen, Can u provide me where we use interface and abstract class in any project with example

  • @manishpatidar5379
    @manishpatidar5379 6 ปีที่แล้ว +2

    perfect explanation as usual.. Thanks

  • @vinaysharma530
    @vinaysharma530 3 ปีที่แล้ว

    Sir you have much depth knowledge about concept 💯👌👌🙏

  • @amanueltesfu6071
    @amanueltesfu6071 2 ปีที่แล้ว

    Excellent explanation. Thanks Naveen!

  • @yashovardhangoyal9270
    @yashovardhangoyal9270 4 ปีที่แล้ว +1

    Thanks Naveen!!! Very Well explained

  • @9chainsgtr
    @9chainsgtr 5 ปีที่แล้ว +3

    Thanks man! Your help is great!

  • @lisazhou7776
    @lisazhou7776 4 ปีที่แล้ว

    very simple and cleat to explained the concepts. thanks.

  • @AlanVargheseAniyan
    @AlanVargheseAniyan 3 ปีที่แล้ว +1

    Does an interface achieve complete abstraction even after Java 8 where default methods are introduced?

  • @doodsmix4015
    @doodsmix4015 3 ปีที่แล้ว +1

    best tutorial so far

  • @sacsp1
    @sacsp1 3 ปีที่แล้ว

    Thanks Naveen for explaining it in easy way. I have one question here, can we create object of abstract class using anonymous class for overriding abstract methods of abstract class then using same object to call other non abstract methods.

  • @akshaysingh5179
    @akshaysingh5179 3 ปีที่แล้ว

    Very nicely explained.Thanks for this video.

  • @vinoddhale2428
    @vinoddhale2428 2 ปีที่แล้ว

    Thanks sir for clearing my concepts..😊😊🙏

  • @myamazingvideos
    @myamazingvideos 5 ปีที่แล้ว

    Hi Naveen,
    I am going through your courses and finding them to be very carefully woven for better and thorough understanding of the viewer.
    Hats off for that.
    Having said that, could you please answer a doubt I have ?
    Can a non-abstract class have an abstract method as well ?
    Thanks in advance :-)

  • @santhoshsomaiah
    @santhoshsomaiah 6 ปีที่แล้ว +1

    Very good explanation

  • @vatsalraj2655
    @vatsalraj2655 2 ปีที่แล้ว

    Very nice and clear explanation

  • @mitthuanjali1823
    @mitthuanjali1823 2 ปีที่แล้ว

    Superb informative 👌

  • @DebunkSensibly
    @DebunkSensibly 3 ปีที่แล้ว +1

    Thank you!

  • @truthlover3522
    @truthlover3522 6 ปีที่แล้ว +1

    Great Navin, i like your videos , awesomely explained

  • @nareshr6733
    @nareshr6733 6 ปีที่แล้ว +1

    Good explanation. Could you please explain the variables access also

  • @itsrohittiwari
    @itsrohittiwari 6 ปีที่แล้ว +1

    You did not mention about default methods of interface introduced in Java 8. Please mention about it.

  • @vasavirayapati8876
    @vasavirayapati8876 3 ปีที่แล้ว +1

    5* for your teaching ability.
    do we have any latest video with java 8,9 features. If any please share the link

  • @kalyanimeshram7669
    @kalyanimeshram7669 2 ปีที่แล้ว

    Just awesome 👌 👏

  • @nehaverma-dp5mm
    @nehaverma-dp5mm 3 ปีที่แล้ว +1

    Superb content!

  • @RajuDas-zn3gx
    @RajuDas-zn3gx 6 ปีที่แล้ว +1

    Can parameter be given in the parent class for both abstract class and interface?

  • @sindhusudhakaran1731
    @sindhusudhakaran1731 4 ปีที่แล้ว

    Thank you Naveen. This is so helpful !!

  • @Driverforcash
    @Driverforcash ปีที่แล้ว

    Very nice video Naveen Sir !

  • @rajeshdhonde9256
    @rajeshdhonde9256 2 ปีที่แล้ว

    Very nice Teaching

  • @ashoktheja3346
    @ashoktheja3346 6 ปีที่แล้ว +1

    Sir can multiple inheritance done for abstract class ?

  • @waniya-huzzu
    @waniya-huzzu 6 ปีที่แล้ว +2

    Can you give any framework related example where we can utilize this abstract or interface concept while designing framework

    • @devinealmighty001
      @devinealmighty001 6 ปีที่แล้ว +1

      Take an example of webdriver and chromedriver
      Web driver is an interface and chromedriver is a class which implements webdriver interface... Hope this helps

  • @rahuljain3547
    @rahuljain3547 2 ปีที่แล้ว

    Very good explain 👍

  • @ajaytiwari4751
    @ajaytiwari4751 6 ปีที่แล้ว +1

    why we cannot create an instance of abstract class ?? Please Describe I have a lot of confusion.

  • @ComputerTechnologiesLab
    @ComputerTechnologiesLab 6 ปีที่แล้ว +1

    Superb Explanation..👍

  • @RajuSingh-lt8cd
    @RajuSingh-lt8cd 5 ปีที่แล้ว

    Excellent Naveen..Hi,Can u pls provide videos on (Cucumber+Protractor+Typescript+Visual Studio Code).It will be helpful.
    Thanks.

  • @Harsh_H_Patil
    @Harsh_H_Patil 4 ปีที่แล้ว

    Thank you sir really clean and clear explanation. Please can you upload one video on java 8 when to use abstract c and interface bcoz in interface they added static and default method

  • @MrAmarSindol
    @MrAmarSindol 6 ปีที่แล้ว +1

    Excellent bro, thanks

  • @A_philodendron
    @A_philodendron 4 ปีที่แล้ว

    Hi navin,
    Can you please make vedios on c#? Or suggest any vedios which has good explanation like your vedios?

  • @madhum3307
    @madhum3307 5 ปีที่แล้ว +1

    Thank you so much for efforts Sir..!!

  • @MihaiKoteles
    @MihaiKoteles 3 ปีที่แล้ว

    Good presentation but still this doesn't explain what are the benefits using Interface during code design when in which use cases to use Interfaces to avoid tight dependency coupling, can you maybe create a video to explain interfaces and their usages in respect to SOLID or code design in general, to answer more the question WHY do we need this, what benefits do they bring, etc.

  • @maronnambo7918
    @maronnambo7918 4 ปีที่แล้ว

    That was very helpful. Thanks.

  • @kiruthikaduraisamy7126
    @kiruthikaduraisamy7126 2 ปีที่แล้ว

    Good Explanation

  • @sreenathreddy2791
    @sreenathreddy2791 3 ปีที่แล้ว

    i think with out abstract method also we can define abstract class. there is no restriction on that. Can you check that

  • @sureshm2047
    @sureshm2047 6 ปีที่แล้ว +2

    Really Naveen tutorial the great stuff tutorial... thanks a lot Naveen

  • @sureshsubramaniyan3201
    @sureshsubramaniyan3201 5 ปีที่แล้ว

    Simply superb

  • @sarahju4524
    @sarahju4524 4 ปีที่แล้ว

    You dropped this king *picks up a crown*

  • @prajwalprabhu7109
    @prajwalprabhu7109 9 หลายเดือนก่อน

    @naveen is it necessary for a class to have at least one abstract method to make a class as abstract

  • @shilpakhot6977
    @shilpakhot6977 4 ปีที่แล้ว

    plz make the video on abstract class and concrete class

  • @s_vasudev
    @s_vasudev 2 ปีที่แล้ว

    Thank you brother 🙂🙂

  • @manojpatil2457
    @manojpatil2457 3 ปีที่แล้ว

    Just one correction we do not need to have at least on abstract method to make a class abstract .
    Rest I always like your videos .

  • @Abhishekyadav-xd2ib
    @Abhishekyadav-xd2ib 3 ปีที่แล้ว

    We can say concrete method too to non abstract method ?

  • @krishnak8524
    @krishnak8524 4 ปีที่แล้ว +1

    superb

  • @shilpapatil1963
    @shilpapatil1963 2 ปีที่แล้ว

    Sir in abstract class not compulsory to have abstract method?

  • @reemalghamdi9974
    @reemalghamdi9974 4 ปีที่แล้ว +1

    THANK YOU SO MUCHHH