SOLID Design Principles in java with Example | JavaTechie

Поделиться
HTML-код
  • Опубликовано: 26 янв 2025

Комментарии • 296

  • @premraj.m
    @premraj.m 3 года назад +34

    1:30 Single-responsibility principle
    5:10 Open-closed principle
    10:45 Liskov substitution principle
    19:45 Interface segregation principle
    24:52 Dependency inversion principle

  • @arthurezeagbo3986
    @arthurezeagbo3986 3 года назад +37

    Java Techie is a great guy. His explanations are always on point.

  • @sangwaemmanuel6936
    @sangwaemmanuel6936 5 месяцев назад +3

    This man understands everything in java from basics to advanced, Thank you JavaTEchie

  • @RosVittler
    @RosVittler 19 дней назад +1

    If you watch this once patiently, you will come to know what is real world programming is. So nicely explained. thank you Boss.

  • @AnuragKumar-rz5rt
    @AnuragKumar-rz5rt 2 года назад +37

    Moral of the tutorial is always use Interface.

  • @salithachathuranga6037
    @salithachathuranga6037 3 года назад +8

    The best explanation I found on SOLID with practical examples!!!

  • @anishbasu5902
    @anishbasu5902 3 года назад +7

    tomorrow I have one interview and I'm glad that you released this video just in time...thank a lot:)

    • @Javatechie
      @Javatechie  3 года назад +1

      Good luck Anish for tomorrow interview 👍🏻

  • @hakeemit
    @hakeemit 10 месяцев назад +1

    Great explanation with real time example (Problem and solution in single video).

  • @Jsr10008
    @Jsr10008 3 года назад +57

    Hi Basant, Thanks for this great content. The Lisklov Substitution Principle and Interface Segregation Principle sounds similar. In the examples, the social media example is also segregating the forcible dependencies.

    • @girishahirrao5558
      @girishahirrao5558 2 года назад +2

      yes i agree..!

    • @Indian1947-o1z
      @Indian1947-o1z 2 года назад +3

      @@girishahirrao5558 there should be some difference, may be basant missed to explain

    • @shilpasingla1739
      @shilpasingla1739 2 года назад +2

      Even I am thinking same liskov and interface segregation are same from example point of view...can you please explain sir

    • @gowthamdasari6227
      @gowthamdasari6227 Год назад +20

      these two principles may seem similar at first glance, they actually address different concerns:
      LSP ensures that subtypes can be used in place of their base types without altering the correctness of the program. In other words, it ensures that inheritance is used correctly, and that derived classes don't break the behavior expected from the base class.
      ISP ensures that interfaces are designed in a way that is specific and relevant to the needs of the clients that use them. It focuses on avoiding bloated and unnecessary interfaces by splitting them into smaller, more focused ones that can be used independently.
      To summarize, LSP is concerned with inheritance and polymorphism, while ISP is concerned with interfaces and their usage. While they are both important principles for designing maintainable and extensible software, they address different issues and should be applied in different contexts.

    • @Jsr10008
      @Jsr10008 Год назад +3

      @@gowthamdasari6227 Thanks bro so much for the detailed explanation…

  • @dhareppasasalatti7102
    @dhareppasasalatti7102 3 года назад +6

    I was waiting from so long..finally it's here..Thank you so much for this video.. ❤❤

  • @gnaneshwarrao174
    @gnaneshwarrao174 3 года назад +10

    0:01 - SOLID full form
    1:27 - Single Responsibility Principle
    5:10 - Open Closed Principle
    10:46 - Liskov Substitution Principle
    19:46 - Interface Segregation Principle
    25:54 - Dependency Inversion Principle

  • @kirane5911
    @kirane5911 Год назад +1

    You are great explainer. Through this video, all doubts of Design princeples are gone.

  • @gowthamdasari6227
    @gowthamdasari6227 Год назад +2

    Thanks for sharing. Great explanation.
    Here in Open Close Principle - Open for extension but closed for modification for new features, gives clear meaning than just mentioning closed for modification (because there is always a chance to modify the written code)

  • @naveenkumarreddyyadagani5753
    @naveenkumarreddyyadagani5753 3 года назад +2

    waiting from very long time now wait ends and got confiedence and knowledge on solid priniciples.Thank you so much sir

  • @venugopalreddy6618
    @venugopalreddy6618 3 года назад +2

    This is the best video, I found explaining SOLID principles. Thanks !

  • @rajshukla865
    @rajshukla865 3 года назад +1

    Best Video on Solid Principle. The explanation with examples really helps to clear the doubts.

  • @GameCanvas7
    @GameCanvas7 11 месяцев назад +1

    One of the best tutorial on youtube 🔥

  • @rahulrajsaini24888
    @rahulrajsaini24888 Год назад +2

    a very nice content delivered again by you Sir.. lots of love

  • @prashantpranav8472
    @prashantpranav8472 2 года назад +1

    One of the best content on solid

  • @ajaycsenit
    @ajaycsenit 2 года назад +2

    Nicely explained S.O.L.I.D principals through simple code example. 😀

  • @dhirajsingh0510
    @dhirajsingh0510 5 месяцев назад +1

    You are too good man !
    Thank you soo much for providing this awesome content ❣️🙌

  • @nasirkhansirajbhai8016
    @nasirkhansirajbhai8016 Год назад +1

    Great tutorial... Liskov and Interface segregation principles looks exactly same..

  • @Arunkumar-vp8rf
    @Arunkumar-vp8rf Год назад +1

    Your explanation very very nice , and after saw your videos i got a clear confident. thank you so much !

  • @AbdurRahman-qi6lp
    @AbdurRahman-qi6lp 3 года назад +2

    Best video and recommended for all❤️

  • @surajdeungale2119
    @surajdeungale2119 3 года назад +3

    Eagerly waiting for your videos as they are worth watching 💯🙏🏻

  • @tulasiramsunkara
    @tulasiramsunkara 3 года назад +1

    @Java Techie: Excellent explanation..👏👏👏👏👏👏

  • @UdayKumar-wu2fm
    @UdayKumar-wu2fm 4 месяца назад

    Very nice explanation...you made SOLID principles a cup of cake for us....thanks a lot...

  • @Glru441
    @Glru441 2 года назад +1

    Short and Precise. You made that look easy! Well done!!!!!!!!

  • @francksgenlecroyant
    @francksgenlecroyant 2 года назад +1

    The video that i can watch and rewatch and feel excited about learning these principles. Thanks Bassant, it did help a lot bro.

  • @alexgutjahr
    @alexgutjahr 3 года назад +8

    Great explanation - I really do like how one ends up with much cleaner code and less tight coupling by following the principles, especially the dependency inversion principle!

  • @rtq389
    @rtq389 3 года назад +2

    Awesome video. Great job Java Techie.

  • @Jilani-i4q
    @Jilani-i4q Год назад +1

    Hi Basant, Gave fantastic explanation. you are my best in Java Concepts session. Your all videos are AWESOME. thanks for your great and beautiful sessions. In My career growth , you are also a Part of it. Thanks once again.

    • @Javatechie
      @Javatechie  Год назад

      I am so glad to hear this keep learning brother 😊

  • @anirudhsingh7832
    @anirudhsingh7832 Год назад +1

    Really happy with this video that's why appreciating it twice. thanks.

  • @vineetkumar2899
    @vineetkumar2899 2 месяца назад +1

    Awesome explanation 👏

  • @mrigankakoley8858
    @mrigankakoley8858 2 года назад +1

    Thank you Sir!!!!!! It is best video for SOLID principle

  • @tamalsaha6091
    @tamalsaha6091 3 года назад +1

    Best explanation on youtube

  • @DheerajKumar-it3dc
    @DheerajKumar-it3dc 7 месяцев назад +1

    Great Explanation, Thank you for making such content.😊

  • @harish-wi3ts
    @harish-wi3ts 3 года назад +2

    I'm waiting for this..from long time ago...
    Thanks sir.🙂👍

  • @mintybreez
    @mintybreez 2 года назад +3

    You make everything simple. ✨️ I am learning a lot from your videos. Thank you.

  • @KapilSoni-e5m
    @KapilSoni-e5m Год назад

    What an explanation sir.!! Big thanks to you for explaining this confusing topic in that much simpler way.

  • @vidhyabrains
    @vidhyabrains 3 года назад +1

    Your r great and easy explanation please continue java techie 👍👍👍👍👍👍👍👍👍👍👍

  • @learnwithmrashid
    @learnwithmrashid 2 года назад +1

    What an explanation it is!!!! Good Job.

  • @gopalwatada9831
    @gopalwatada9831 3 года назад +3

    Nicely explained with relevant examples

  • @gasparcalix2095
    @gasparcalix2095 Год назад +1

    i just found this video too late, but, its refreshing!

  • @himanshutripathi5043
    @himanshutripathi5043 Год назад +1

    Thank You Bro best real-time example to explain 🤢😎

  • @vinitamaloo107
    @vinitamaloo107 Год назад +1

    Thanks for explaining everything with examples.

  • @AM-fb6dd
    @AM-fb6dd 3 года назад +1

    Thank you very much for sharing this video. This is the best version to understand SOLID with examples so far after I looked at a few different ones. Thank you!!

  • @rameshanantavarapu3866
    @rameshanantavarapu3866 3 года назад +1

    Great work by Java Techie

  • @priyanshudhar2461
    @priyanshudhar2461 Год назад +1

    Amazing explaination of each concept
    Thankyou sir 🙏🏽

  • @nagendrad9263
    @nagendrad9263 3 года назад +1

    Very useful concept ...keep going 👏🏻👏🏻👏🏻

  • @ahmadazeem7785
    @ahmadazeem7785 7 месяцев назад +1

    Your explanations are just amazing ✨

  • @viji6131
    @viji6131 3 года назад +1

    Thanks for making this video... ... I was into multiple videos to learn solid design principles.. . But ur video is direct and very easy to grasp the concept

  • @titanmtp4368
    @titanmtp4368 3 года назад +1

    Very very essential concept in microservices. Thanks sir

  • @ameermuavia9334
    @ameermuavia9334 2 года назад +1

    @java Techic the 2,3 and 4 principles are looking identical?

  • @AkashGupta-jb7zj
    @AkashGupta-jb7zj Год назад +1

    Great examples used!! 🙌🙌

  • @gopishettymahindra2713
    @gopishettymahindra2713 Год назад +1

    Great explnation sir. Thank you so much

  • @amizan8653
    @amizan8653 3 года назад +3

    Your videos are really solid man (pun intended), thank you so much for taking the time to make these & post them!

  • @VivekSharma-vu9yl
    @VivekSharma-vu9yl Год назад +1

    Very nicely explained. Thank you so much sir...

  • @lakshmidevilakshmidevi3984
    @lakshmidevilakshmidevi3984 Год назад +1

    Thank you so much for the clear explanation Sir.

  • @crimsonx_
    @crimsonx_ 3 года назад +1

    A most wanted video... Thank you so much

  • @VarunVishwakarma1
    @VarunVishwakarma1 3 года назад +7

    You are the one who makes me understand the LSP. However, I got confused with LSP and ISP. According to LSP, Parent should be completely substitutable with the child, so we create a smaller interface and now child can replace parent. With ISP after segregating interfaces, the child can replace a parent. Can u please comment on this please?

  • @SSeyhaa
    @SSeyhaa 2 года назад +1

    Thank you plz keep going
    We all need you

  • @vijaychhalotre2315
    @vijaychhalotre2315 3 года назад +1

    Great explanation on Solid Principle. The explanation with examples really helps to clear the doubts.

  • @MEGANE34
    @MEGANE34 2 года назад +1

    again good explanation from you,thanks you so much

  • @ManojKumar-do1rh
    @ManojKumar-do1rh 11 месяцев назад +1

    Great explanation ... one of best tutorial

  • @gourisankardash646
    @gourisankardash646 3 года назад +1

    Super Explanation !!! Hats off to you !!

  • @sudhirverma4790
    @sudhirverma4790 3 года назад +1

    great nice example solid priciple

  • @graforce
    @graforce 3 года назад +1

    Thanks for sharing this video with clear examples!

  • @sandeeppanwar2161
    @sandeeppanwar2161 2 года назад +1

    solid principle explanation at its best.

  • @pawankumar-ez9mf
    @pawankumar-ez9mf 2 года назад +1

    Awesome video, keep it up good work

  • @SumitKumarPrajapatiBCS
    @SumitKumarPrajapatiBCS 2 года назад +2

    Thanks for this..The explanation was great

  • @shailendraraj4951
    @shailendraraj4951 3 года назад +2

    Great concept always

  • @sreddy8141
    @sreddy8141 11 месяцев назад +1

    Just one word, thanks a lot sir🙂 you really explain things so well.
    Pls help with oauth2 integration in Microservices built using springboot from scratch sir pls pls

    • @Javatechie
      @Javatechie  11 месяцев назад

      Hello sreddy it's already there in my spring boot security playlist

    • @sreddy8141
      @sreddy8141 11 месяцев назад +1

      @@Javatechie thanks sir. Will go through it. 🙂

    • @sreddy8141
      @sreddy8141 11 месяцев назад

      Have seen the video, its so informative. Thanks sir. Is it DS and algo to be perfect to get into prod based?
      Most of us use frameworks which already built and ready to use. Im thinking to switch, but getting hold back with fear of ds as im not that great at it.

  • @poojatikhe2046
    @poojatikhe2046 2 года назад +1

    Nicely explained ..
    Thank you 😀

  • @sheshankgolli2667
    @sheshankgolli2667 2 года назад +1

    Great Explanation, Thanks a lot sir

  • @kailashgurjar9246
    @kailashgurjar9246 3 года назад +1

    Thank you bro for good explanation 🙏. You are such a champ man.

  • @Ramharigopal123
    @Ramharigopal123 2 года назад +1

    Good content bro.

  • @dhirendrakumar4619
    @dhirendrakumar4619 2 года назад +1

    your are genius Sir it helped alot.

  • @sivakrishna2544
    @sivakrishna2544 11 месяцев назад +1

    ❤❤fantastic explanation

  • @pragatidharmale2733
    @pragatidharmale2733 3 года назад +1

    Excellent explanation . Thank you very much for sharing your knowledge

  • @slrichmind1662
    @slrichmind1662 2 года назад +1

    Great Explanation on SOLID

  • @sathiskumarp
    @sathiskumarp 2 года назад +1

    Thanks for providing a clear explanation. All the 4 principles except single responsibility principle, somehow we are using interface to perform the principles. So we need to use an interface to achieve all these. Correct me if I am wrong

  • @sacredheartresthouseinn8251
    @sacredheartresthouseinn8251 3 года назад +6

    would be great if two seperate videos can be done in a dedicated, sytematic and structured way - one for Java from basics covering all content and 1 - Advanced Java including Java 8 concepts from basic till end. It can be a very length content but it's okay

  • @saqtquadri
    @saqtquadri Год назад +1

    I appreciate your effort, i follow your videos to upgrade my knowledge bank, but The Lisklov Substitution Principle example is Interface Segregation Principle example.

    • @Javatechie
      @Javatechie  Год назад

      It looks the same but the context is different i would suggest you check it again

  • @sahukarinaveenkumar3188
    @sahukarinaveenkumar3188 4 месяца назад

    Great Explanation 🎉

  • @RPRAVEEN14790
    @RPRAVEEN14790 3 года назад +1

    Good work.. Nice explanation.

  • @rrc2355
    @rrc2355 3 года назад +1

    Very good explanation.thanks

  • @SKStudy-nx4pc
    @SKStudy-nx4pc 2 года назад +1

    Good explanation all points
    Thanks

  • @AishwaryaSawant-lc2eb
    @AishwaryaSawant-lc2eb Год назад +1

    Explained very clearly

  • @manojkumarpadarthi4805
    @manojkumarpadarthi4805 3 года назад +1

    Thank you sir..
    Thanks for making the content free ppl like us can get all great content related to java at one place 👍👍

  • @neerajgupta-gk6gv
    @neerajgupta-gk6gv 2 года назад +1

    Thanks for the your view. you explained well but i didn't find the difference between Liskov Substitution principle and Interface segregation Principle.

    • @Javatechie
      @Javatechie  2 года назад

      As I mentioned it looks same but the context is different

  • @pratikgoud1
    @pratikgoud1 2 года назад +1

    Nicely explained. Good job sir! Keep it up.

  • @Th3Arock
    @Th3Arock 2 года назад +1

    That was really good for me thanks a lot

  • @priyankasingh1620
    @priyankasingh1620 2 года назад +1

    Thanks for great content Basant.

  • @anirudhsingh7832
    @anirudhsingh7832 Год назад +1

    The video is really useful. Thanks.

  • @rungxanh2901
    @rungxanh2901 2 года назад +1

    Thank you man! I'm preparing for my job application and this video is a big help 🙏🏻 Something college doesn't teach you

  • @anonymous_MD
    @anonymous_MD 2 года назад +1

    Thank you, this was amazing explanation.

  • @Akhilesh_Reddy
    @Akhilesh_Reddy 3 года назад +1

    Thanks basit , Best explanation video on SOLID.

    • @Javatechie
      @Javatechie  3 года назад

      Akhil btw my name Basant not Basit

    • @Akhilesh_Reddy
      @Akhilesh_Reddy 3 года назад +1

      @@Javatechie thanks Basant

  • @varadanayudumallala554
    @varadanayudumallala554 3 года назад

    Thanks! Though your pronunciation should be improved little bit.

  • @XD-rk3nb
    @XD-rk3nb Год назад +1

    i know it is going to be a great video the moment i first hear the accent