Singleton Design Pattern in Java - part I

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ม.ค. 2025

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

  • @ranjithramachandran5928
    @ranjithramachandran5928  9 ปีที่แล้ว +23

    Singleton design pattern comes with a few flaws.. so beware before making it your favorite..

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

      Really this video is very helpful.

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

      Thank you. Its really a nice video. Also for info when using multi-thread, I feel synchronize could help by not creating new instance and achieve singleton. ??

    • @VIVEKSINGH-pc4lb
      @VIVEKSINGH-pc4lb 5 ปีที่แล้ว

      Sir problem u explain regarding Reflection is not problem anymore with new version of java. I t was for previous version

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

      Why you havnt made videos on remaining design patterns ?

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

      you should upload more videos on different topics... your explanations are fantastic sir

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

    I have watched this video 4-5 years ago and I have answered many questions after watching this knowledgeable video. Again I came back here for my interview preparation and also recommended it to my colleagues . This is the best way any one can explain it. Thanks for sharing and helping us. I hope you make more such videos. All the best.

  • @travelkhor
    @travelkhor 9 ปีที่แล้ว +9

    Stumbled upon this randomly and found a gem. Brilliant explanation. Thanks

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

    Seen many Java tutorials on yt, this one is one of the greates if not simply best.

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

    Wow, best way to understand Singletons👍👍👍

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

    very good explanation hats off you sir

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

    Simply the best tutorial in Singleton Pattern. Please, keep making more videos on design patterns.

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

    @Ranjith ramachandran - I don't know why you stopped making videos now but your videos are best out there and great explanation.

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

    Absolutely fantastic, looking forward for some more vedio on design patterns.

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

    I wish I had watched this tutorial before. Awesome explanation, thank you.

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

    plz do more java videos u r an awesome teacher. i love to share your channel with my frnds

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

    great video sir

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

    Wow wonderful explainantion.. looking for more tutorials from u.

  • @gunturmanju
    @gunturmanju 7 ปีที่แล้ว

    Excellent Video Ranjith. Best one so far on web which explains in detail with code from violation standpoint. Thank You!

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

    Great explanation with examples. Keep posting more design patterns and enterprise solutions

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

    Nicely described.Thanks a lot.As many of them not did it before you did it well like problematically.

  • @er.sahilmd
    @er.sahilmd 19 วันที่ผ่านมา

    Where have you been lost, I hope you are doing great, please make more such videos

  • @prakashkchauhannn
    @prakashkchauhannn 8 ปีที่แล้ว

    Nice and Simple explanation. Thank you.

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

    awesome. Explained very nicely.

  • @paranthamanrajendran9385
    @paranthamanrajendran9385 9 ปีที่แล้ว

    Very nice ans deep explanations !!! , expecting more topics in different areas, great works

  • @vinodbhadu4576
    @vinodbhadu4576 7 ปีที่แล้ว

    Awesome and very informative video, Thank you Ranjith Sir.

  • @sha_patil
    @sha_patil 8 ปีที่แล้ว

    awesome tutorial.. thanks for sharing with us..

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

    Best Explanation, Thank you for such a nice video

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

    Greats explanation I ever found. Thank you very much.

  • @manishankershukla1082
    @manishankershukla1082 8 ปีที่แล้ว

    After watching all your videos I am craving for more Java knowledge...Please keep posting more videos about Spring,Hibernate,REST ,Theading....I am big fan of yours

  • @tiruc
    @tiruc 9 ปีที่แล้ว +1

    Very nice explanations !!! all doubts about violation of Singleton pattern has been cleared, exciting to watch Part-2. Please do you it your earliest convenience, really appreciate your effort and details on the topics.

    • @ranjithramachandran5928
      @ranjithramachandran5928  9 ปีที่แล้ว

      tirupathi c Thanks! it is coming out this week, please subscribe to the channel for updates.

  • @AmitKumar-qh4ow
    @AmitKumar-qh4ow 9 ปีที่แล้ว

    Best Tutorial for Singleton. Thank you so much

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

    Great explanation... Fan of your knowledge

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

    Ranjith we are waiting to see videos on remaining design patters. I request you to please do videos on remaining design patterns.

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

    Nice video, it's the best explanation I've seen

  • @aviralbhardwaz5485
    @aviralbhardwaz5485 7 ปีที่แล้ว

    from the scratch.........awesome

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

    Thanks for the great explanation!

  • @kunalrai7577
    @kunalrai7577 7 ปีที่แล้ว +1

    Exceptionally awesome video

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

    It's a really very very good explanation.
    Good job.

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

    Thanks from tunisia ;)

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

    Really helpful video. Thank you for your great efforts.

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

    Awsome video, sir please upload more video about all Design pattern and data structures.

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

    Great explanation...!!!

  • @leowilliams6848
    @leowilliams6848 7 ปีที่แล้ว

    Boss!!! Excellent Tutorial.

  • @mayankmehta7606
    @mayankmehta7606 7 ปีที่แล้ว

    very nice and detailed explanation Ranjith. Highly appreciable work! Awaiting for your next videos.

  • @RaviKumar-kx1yc
    @RaviKumar-kx1yc 8 ปีที่แล้ว

    thanks.. for uploading this video.. nice sanrio

  • @piotr.kwiatkowski
    @piotr.kwiatkowski 9 ปีที่แล้ว +1

    This. Was. Deep. THANK YOU!

  • @sanjaybharkatiya
    @sanjaybharkatiya 9 ปีที่แล้ว

    very nice explained.. kudos to you..best explanation i can say..please add more into design patterns tutorials..

    • @ranjithramachandran5928
      @ranjithramachandran5928  9 ปีที่แล้ว

      +sanjay bharkatiya Thanks, Please check the channel, I have a part 2 to this and then factory-method pattern video. Hope you find it useful.

  • @murtazabagwala7678
    @murtazabagwala7678 9 ปีที่แล้ว +1

    Awesome explanation and very well researched Thanks

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

    Fantastic

  • @deeptik9865
    @deeptik9865 7 ปีที่แล้ว

    Nicely explained.

  • @Sethorion99
    @Sethorion99 9 ปีที่แล้ว

    Good video! Well explained.

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

    Excellent video....

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

    great explanation, thank you very much

  • @viveksingh-us8il
    @viveksingh-us8il 8 ปีที่แล้ว +1

    Your slides are awesome and really informative.

  • @neerajjassal8750
    @neerajjassal8750 8 ปีที่แล้ว

    Really good bro, very nice and easy explanation

  • @AjeetKumar-rv6yh
    @AjeetKumar-rv6yh 5 ปีที่แล้ว

    I am your big fan.. Your explanation with these deepest knowledge is amazing.. I salute to your case study for this topics.. I hope you will continue to share this important information with us. 🙏🙏

  • @rups4343
    @rups4343 9 ปีที่แล้ว

    Thanks Sir,..Very meticulous ....

  • @DurgeshKumawatdk
    @DurgeshKumawatdk 8 ปีที่แล้ว

    best explanation

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

    The BEST to CORE . Thanks in ton Ranjith. It is to the point. Hope u do some videos on Spring framework.

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

    It's really great explanation and really helpful for interview. Please upload for other design pattern also.

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

    Thanks Ranjith, Nicely Explained..

  • @rizanamatya9191
    @rizanamatya9191 7 ปีที่แล้ว +1

    Thank you for the video. Best video

  • @gaurmmec
    @gaurmmec 9 ปีที่แล้ว

    Thanks Ranjith, nicely explained and well researched. Keep up the Good Work.

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

    very nice... thanks so much

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

    Remarkable!

  • @harishkumargudivada1732
    @harishkumargudivada1732 7 ปีที่แล้ว +1

    hi ranjith its a great explanation .i have learned new things like executorservice and executor and great explanation on singleton.i know only few flaws on singleton desighn pattern before listening to your video. thanks a lot and make more videos lie this

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

    please cover other design pattern too, best ever video

  • @sajidcis
    @sajidcis 7 ปีที่แล้ว

    fantastic explanation

  • @amitpawar3167
    @amitpawar3167 8 ปีที่แล้ว

    thanks ....video very helpful for me ..
    .

  • @prabhukalshetti8002
    @prabhukalshetti8002 8 ปีที่แล้ว

    Thanks .. Nice explanation..

  • @yanitwinkle
    @yanitwinkle 8 ปีที่แล้ว

    good explanation...

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

    great explanation
    Thanks :)

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

    Thanks for the videos. If possible can you please add Java 8 videos.

  • @SuprajaYKM
    @SuprajaYKM 9 ปีที่แล้ว

    Very well explained, thanks!

  • @shashankgupta2526
    @shashankgupta2526 8 ปีที่แล้ว

    very nice video

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

    Super video sir

  • @renanlopes9144
    @renanlopes9144 7 ปีที่แล้ว +1

    Thanks, it helped a lot!

  • @skyglacierfunny
    @skyglacierfunny 8 ปีที่แล้ว

    well explained...

  • @Justinwk11
    @Justinwk11 9 ปีที่แล้ว +1

    Thanks A lot. Great Explanation!

  • @prannoysingh966
    @prannoysingh966 7 ปีที่แล้ว

    Great video, Thanks Ranjit :):)

  • @kallachaitanya2132
    @kallachaitanya2132 8 ปีที่แล้ว

    Sir plz make more videos. Your videos are very helpful . Thanks a lot.

    • @crosseyewatch
      @crosseyewatch 7 ปีที่แล้ว

      Only constraint is time. I will try my best to release some videos soon

    • @kallachaitanya2132
      @kallachaitanya2132 7 ปีที่แล้ว

      Can you plz post some real time work flow that includes exception, flow of data from database to DAO layer, services, control and JSON object parsing using angular or jQuery . I am interested in learning the real time approach and it is most use full to many ppl.

  • @chandru95666
    @chandru95666 8 ปีที่แล้ว

    Really very useful video Ranjith.You are a right person to ask this question .
    After I completed my graduation ,I got a chance to work in J2EE application.
    I had struggled lot and completed my project.bec I dont know anything about java.
    After that I had worked with few big clients in J2EE projects
    So my question is ,should J2EE developer have strong knowledge in core java (Like thread ,String pooling,heap,stack,i/o operations).
    Though we are working in web application we know how to get data from db,display in web page ,validations &securities.
    So how much knowledge the web application developer should possess.Since Java is very vast,I don't think everyone can learn everything.
    Please clarify my doubt.
    Note:
    I am working in Spring MVC ,JS/JQuery ,angular js and little bit Struts(worked 4 big projects).but I dont feel that I am strong in Java.

  • @KrishnaPrasad-qt7ke
    @KrishnaPrasad-qt7ke 6 ปีที่แล้ว

    Thanks a lot Ranjith.

  • @gunasekhar9638
    @gunasekhar9638 7 ปีที่แล้ว

    thanks for the amazing videos.... could you please upload the remaining videos on design patterns...... once again thank you so much... keep it up for your good work.. :-)

  • @josephstanley7202
    @josephstanley7202 9 ปีที่แล้ว

    sir you are awesome

  • @GiridharKN
    @GiridharKN 9 ปีที่แล้ว

    nice .. thanks Ranjith :)

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

    Sir when will you come back. Please do give us some knowledge on Microservices.

  • @veeraarunkumarveeranki9601
    @veeraarunkumarveeranki9601 7 ปีที่แล้ว

    Hi Ranjith, Great explanation, I need to know the absract factory and abstract design patterns. Can you explain in your feature videos.

  • @lifebyvivek
    @lifebyvivek 8 ปีที่แล้ว

    First of all, thanks a lot ranjith, your videos are very helpful and descriptive. Also the selection of topics is also very good, the kind-of topics that you are covering are the most complicated and missed out once.
    Can you please also consider sharing some sessions on :
    - Java Concurrency
    - Browser memory model and rendering of HTML ( like the way, JVM operates to run java code, how browser sends requests, receives response, how it gets read and interpreted and lastly rendered )

    • @crosseyewatch
      @crosseyewatch 7 ปีที่แล้ว

      Yes, I really would like to put some topics out. Only constraint is time. I will try my best to release some videos soon

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

    Sir, please do more vidoes. I'm sure people won't mind you paying for it via patreon.
    If you feel, you don't have time, at least suggest us the materials you used to gain this knowledge.
    You are good to lot of people, as you teach us. Thanks. Please come back. Please.

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

    Great

  • @wBacz
    @wBacz 7 ปีที่แล้ว

    more videos bout patterns, please.

  • @vivekjavangula4998
    @vivekjavangula4998 8 ปีที่แล้ว

    Good Video Mr. RR

  • @sremayeedebbarma1162
    @sremayeedebbarma1162 9 ปีที่แล้ว

    Very very Nice Tutorials.. I am following all your tutorials. Just one request. Could you please provide links for the code that you write in the tutorial for reference. Thanks in advance !

  • @saidsenhadji
    @saidsenhadji 8 ปีที่แล้ว

    super!!

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

    Hi @Ranjith, Please let me know What's the scope of Singleton? Whether it's a classloader level or JVM level?

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

    nice explanation, may i know how have you created this app? , means which software have you used?

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

    please post more videos..

  • @shadabakhtarofficial1564
    @shadabakhtarofficial1564 8 ปีที่แล้ว

    please tell me what is the difference b/w java & C++ singleton class ??

  • @harishchowdarysure8858
    @harishchowdarysure8858 9 ปีที่แล้ว

    sir............please upload thread concurrency and multi threading.............its hard to understand..............

  • @akieshrajan
    @akieshrajan 8 ปีที่แล้ว

    Hey... when do you plan on uploading the remaining design pattern videos...

  • @girips29testing
    @girips29testing 8 ปีที่แล้ว

    very good & clear explanation..thanks for videos...how do I subscribe for your videos....

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

    So.. just to be clear --> if you don't make your singleton class implement Cloneable or Serializable, you aren't vulnerable to breaking this pattern. The only ones i think that apply here are Reflection and the multi-threaded used case you described above, am i correct ?

  • @sunilmali8483
    @sunilmali8483 7 ปีที่แล้ว

    Nice