TOP 6 difference between Abstract class and Interface in JAVA || Must know facts

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ส.ค. 2024

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

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

    Nice bro. thumbs up (go to 5:55 and make some correction you made both abstract method.)

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

      Great Catch Brother. Glad you found the mistake.Thank you.

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

      Cant we declare abstract method inside abstract class ?

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

      Yes you can....In fact if we have one method as abstract then the class needs to be defined as abstract..

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

      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..

    • @akulabhaskar3797
      @akulabhaskar3797 6 ปีที่แล้ว

      So if i have abstract class i cant create object of respective class ?

  • @99crazyrider
    @99crazyrider 5 ปีที่แล้ว +23

    This is how it should be explained! Every segment is explained and covered with an example, well done. No time wasted here.

  • @inesbrenner2979
    @inesbrenner2979 5 ปีที่แล้ว +34

    Finally someone who knows how to explain things, well done!

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

      What he is telling is theory , not at all connected to technical
      You are a disaster brenner

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

      @@arch3994 stfu moron, and keep your hateful comments with you we don't need that here...

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

    Finally came to know the clear the difference between Abstract and Interface. Thanks bro.

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

    Best video about the interface and abstract class. so glad to watch it.

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

    Awesome Explanation keet it going 👍

  • @RanaQaiserofficial.
    @RanaQaiserofficial. 4 ปีที่แล้ว

    Nice,superb...................................................................................................................................................

  • @AbhishekKumar-er4fu
    @AbhishekKumar-er4fu 3 ปีที่แล้ว

    Super Guru jee

  • @AmeyChittar
    @AmeyChittar 7 หลายเดือนก่อน

    Wow this is the best explanation for interface and abstract class. Thank you so much.

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

    Thanks for sharing

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

    Awesome

  • @vijaymohan.p
    @vijaymohan.p 6 ปีที่แล้ว +19

    In Java 8 : Functional interface is an interface that contains only one abstract method.

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

    Content 🙏💥💥💥

  • @sainathpabba5392
    @sainathpabba5392 5 ปีที่แล้ว +7

    Good one. (at 16:50 the constructor and class name mismatching.)

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

    Ur concepts are crystal clear ........ This is the best video abt abstract classes and interafaces. Keep it Up ...... God bless you and ur family

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

    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.

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

    Maqsood bhai tum boht acche se samjha ta hai !! thank u

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

    Superb

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

    Very well explained

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

    Nice explanation

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

    Good explanation

  • @NourKhafaji
    @NourKhafaji 8 หลายเดือนก่อน

    Well done . Thank you for the clear explanation.

  • @varunrickstudios2868
    @varunrickstudios2868 3 วันที่ผ่านมา

    Fantastic explain thank you You are Spark 🔥

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

    excellent

  • @user-yw6ct8vz1x
    @user-yw6ct8vz1x ปีที่แล้ว

    Wow, really your are amazing 👏

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

    Why dislike to this video..disliker please give explanation?? Your videos are very helpful dude👌👌

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

    Nice

  • @DeepakSingh-mw9bf
    @DeepakSingh-mw9bf 4 ปีที่แล้ว

    Sweet

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

    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

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

    This is how it should be explained. Crisp and yet detailed. Thanks for making this man 👍🏽👌🏽

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

    Awesome explanation brother

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

    Spectacular explanation 👍 supperrrb

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

    great teacher

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

    Very clear explanation

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

    I like this channel very much Abhilash will teach very easiest way !!!!Thank you😇😇😇

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

    Seriously this is top class i literally lost 3 interviews because of this question but this time i confident to answer

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

    Great 👍

  • @inglevi1
    @inglevi1 6 ปีที่แล้ว

    NIce tutorial provide with Thread and Multithreading Concept tutorial with real time example

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

    Wow

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

    you are just awesome teacher

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

    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.

  • @user-do7dv4kd2g
    @user-do7dv4kd2g 4 ปีที่แล้ว

    thanks...you are so cool.very clear explanation

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

    Best video Bro ❤️❤️

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

    Super man, well explained

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

    Thank you it made scense today for me!

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

    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).

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

    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.

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

      yes you are correct, because constructor should have the same name as class name.

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

    Well explained bro, Thank you so much..... keep doing more videos..... 👌

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

    Nice explaination for everything..

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

    you are explaining very clearly brother thank you...

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

    Very informative video. Thank you

  • @SP-rm5ik
    @SP-rm5ik 5 ปีที่แล้ว +1

    Nice explanation keep it up.

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

    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!!!

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

    This video is very very helpful

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

    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.

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

    Best video in youtube ever, thank you for helping me understand.

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

    Superb explanation... Thank you

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

    Absolute legend, thank you for the wonderful lession!

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

    Good info..Thank you

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

    Great video

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

    Very nice explanations ...

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

    better bro

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

    man, thanks a lot for spendng time explaining and editing the video in a way that is so simple to follow along and understand

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

    your teaching style is very well it help me to cleared about abstract class and interface thanks sir

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

    thats a good explanation. now i am understand the difference between abstact class and interface................. good job ..... keep make a video like this

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

    greeat video man, after many tries to understand, this served me the best.

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

    Thanks allot

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

    Very helpful 👍

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

    16:52 constructor name is different than class name.

  • @punithkumar11
    @punithkumar11 6 ปีที่แล้ว

    Wonderful explanation

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

    nice tutorial, loved it

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

    nice man.. thanks for your time explaining others

  • @akado5663
    @akado5663 6 ปีที่แล้ว

    Very nice Video. Thanks a lot. Was very helpful for understanding

  • @AbdulRahman-jx2vn
    @AbdulRahman-jx2vn 4 ปีที่แล้ว +3

    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.

  • @Skripturz
    @Skripturz 6 ปีที่แล้ว

    nice video, keep up the great work

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

    Great explanation! Thank you so much!!!

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

    awesome bro

  • @pratapsingh-le2br
    @pratapsingh-le2br 6 ปีที่แล้ว +3

    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

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

    Thanks

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

    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.

  • @kolluru17
    @kolluru17 6 ปีที่แล้ว

    This is really a very good explanation and very good information.. Thank you so much

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

    nice explanation bro thanks

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

    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?

    • @vishaltank1278
      @vishaltank1278 5 ปีที่แล้ว +7

      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.

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

    superb

  • @anilamane696
    @anilamane696 6 ปีที่แล้ว

    Rocking description

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

    Bro ,ur way of teaching really super and very clear and ur English was fluently bro, keep it up bro👌👌👌👌👌👌👌👌👍👍👍👍👍👍💐💐💐💐💐

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

    good job....just one suggestion pls try to make more videos on conceptual topics of core java which mainly clear basic concepts.

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

    Thanks a lot for this , i was so confused in these concepts , but you helped a lot thanks a lot bro

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

    you are great thnx

  • @surajpatil5820
    @surajpatil5820 6 ปีที่แล้ว

    great explanation im searching for it

  • @jagrutibarot6699
    @jagrutibarot6699 6 ปีที่แล้ว

    Thank you for help to learn

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

    Thank you for your good work. I really enjoy watching your videos and I always learn something.

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

    Very useful,, easy to understand.
    Please go next class with dagger 2 dependency injection

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

    11:33 not only abstract class doesn't support multiple inheritance but any class

  • @ragiththomas9510
    @ragiththomas9510 6 ปีที่แล้ว

    Thank you very much for the video

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

    thanks

  • @ArvindKumar-en5mr
    @ArvindKumar-en5mr 6 ปีที่แล้ว

    Well done. Keep it up bro.

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

    Best video.....but I didnt understand why the need to declare variables inside an interface ....and why they are final and static ?

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

    please can you do Hash Set internal mechanism video

  • @Adam-gp3ij
    @Adam-gp3ij 5 ปีที่แล้ว

    Thank you so much that was really clear