SOLID Design Principles in java with Example | JavaTechie

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

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

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

    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 3 месяца назад +2

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

  • @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…

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

    Moral of the tutorial is always use Interface.

  • @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)

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

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

  • @VarunVishwakarma1
    @VarunVishwakarma1 2 года назад +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?

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

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

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

    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 7 месяцев назад +1

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

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

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

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

  • @vengateshm2122
    @vengateshm2122 3 года назад +11

    Even a Layman can understand this topic as you have taken the payment related usescases which is heavily used by people from all sorts of life.

  • @sacredheartresthouseinn8251
    @sacredheartresthouseinn8251 2 года назад +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

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

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

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

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

  • @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

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

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

  • @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

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

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

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

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

  • @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

  • @AM-fb6dd
    @AM-fb6dd 2 года назад +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!!

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

    Very very essential concept in microservices. Thanks sir

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

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

  • @Jilani-i4q
    @Jilani-i4q 11 месяцев назад +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  11 месяцев назад

      I am so glad to hear this keep learning brother 😊

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

    Thanks for explaining everything with examples.

  • @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

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

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

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

    One of the best tutorial on youtube 🔥

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

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

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

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

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

    One of the best content on solid

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

    Amazing explaination of each concept
    Thankyou sir 🙏🏽

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

    Nicely explained with relevant examples

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

    Thank you so much for the clear explanation Sir.

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

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

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

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

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

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

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

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

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

    Excellent explanation . Thank you very much for sharing your knowledge

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

    Best video and recommended for all❤️

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

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

    Your explanations are just amazing ✨

  • @neerajgupta-gk6gv
    @neerajgupta-gk6gv Год назад +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  Год назад

      As I mentioned it looks same but the context is different

  • @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

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

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

  • @sreddy8141
    @sreddy8141 8 месяцев назад +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  8 месяцев назад

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

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

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

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

      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.

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

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

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

    Best explanation on youtube

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

    A most wanted video... Thank you so much

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

    Thanks for sharing this video with clear examples!

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

    solid principle explanation at its best.

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

    great nice example solid priciple

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

    Great explnation sir. Thank you so much

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

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

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

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

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

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

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

    Very well explained in an easy way.

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

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

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

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

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

    Great Explanation on SOLID

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

    Great Explanation, Thank you for making such content.😊

  • @vineetkumar2899
    @vineetkumar2899 24 дня назад +1

    Awesome explanation 👏

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

    Thank you Basant for wonderful explanation

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

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

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

    again good explanation from you,thanks you so much

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

    Thanks for this..The explanation was great

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

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

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

    Great explanation ... one of best tutorial

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

    Thank you, this was amazing explanation.

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

    Can you create a separate video for L Substitution Principle? Thanks

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

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

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

    I really like the examples that you provide

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

    Thank you plz keep going
    We all need you

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

    Great work by Java Techie

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

    Good explanation all points
    Thanks

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

    Thanks a lot for such a wonderful explained concept

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

    Great Explanation, Thanks a lot sir

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

    The video is really useful. Thanks.

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

    your are genius Sir it helped alot.

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

    Explained very clearly

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

    Very nicely explained. Thank you

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

    Super Explanation !!! Hats off to you !!

  • @akashshah6622
    @akashshah6622 9 месяцев назад +1

    Fantastic Explaination

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

    😊 Simplest explanations. Thanks.

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

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

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

    Very good explanation.thanks

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

    T
    hank you so much for the SOLID principle

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

    Hi Basant, thank you so much in explaining in detail

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

      Thanks Nilesh.keep learning

  • @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 👍👍

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

    Nicely explained ..
    Thank you 😀

  • @SANDIPKUMAR-es7qh
    @SANDIPKUMAR-es7qh 3 года назад +1

    Nicely explained. Thank you so much !

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

    That was really good for me thanks a lot

  • @pauly.4507
    @pauly.4507 3 года назад +1

    Very helpful! Thanks for sharing!

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

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

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

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

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

    This is brilliant sir! Thank you!!

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

    Very well explained with great examples. Thank a lot for this video