🔥Singleton Design Pattern in Detail | Multi-Threaded Environments | Hindi

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ค. 2023
  • In this video we are going to learn about the single design pattern in detail with examples.
    Full Playlist: • Design Patterns Tutori...
    Article Link: learncodewithdurgesh.com/blog...
    Telegram Link for Doubt: t.me/learncodewithdurgesh
    Important Videos:
    ➡️React JS with Project : • 🔥 🔥 Complete React Js ...
    ➡️Learn JDBC in one video: • JDBC Crash Course in 1...
    ➡️Learn Python in One Video: • Learn Python in One Vi...
    ➡️Learn HTML in one video: • Jquery in one video in...
    ➡️Learn HTML form in one video: • Jquery in one video in...
    ➡️Learn JavaScript in one videos: • Learn JavaScript in O...
    ➡️Learn Form Validation using javascript and jquery: • Form Validation using ...
    ➡️Learn CSS in one video: • Jquery in one video in...
    ➡️Jquery in one video: • Jquery in one video in...
    Kotlin is one video: • Kotlin | Learn Kotlin ...
    ➡️Complete Python Project - TH-cam downloader in one video: • Jquery in one video in...
    Important Playlist:
    ➡️Spring Boot Tutorial with Project : • Spring Boot Tutorial i...
    ➡️Spring MVC Tutorial: • Spring MVC Tutorial St...
    ➡️Complete Spring Framework Tutorial: • Spring Framework Tutor...
    ➡️Hibernate Tutorials: • Hibernate Tutorial for...
    ➡️E-Commerce Project using Java: • E-Commerce Project usi...
    ➡️AWS Free Java Hosting Playlist: • AWS Hosting Tutorial |...
    ➡️Hibernate Tutorial Playlist: • Hibernate Tutorial for...
    ➡️Learn Technology in One Vides: • Learn in one video : C...
    ➡️Programming Tips for Programmers: • Coding Tips and Discus...
    ➡️Complete Python for Beginners: • Complete Python Tutori...
    ➡️Important Python Projects: • Python Projects in Hindi
    ➡️Complete Servlet & JSP : • Servlet and Jsp (Serve...
    ➡️Complete JDBC ( Java Database Connectivity) : • JDBC(Java Database Con...
    ➡️Complete Java Project : TechBlog: • Full Java Advance Pro...
    ➡️Java Swing Projects: • Java Projects for begi...
    ➡️Java Core Concepts: • Java Core Tutorial
    ➡️Kya aap Jante hai Series: • kya app jante hai : s...
    Important Links:
    👉Official Website (Source Code): learncodewithdurgesh.com/
    👉Telegram Discussion Group: t.me/learncodewithdurgesh
    👉Follow me on Instagram: / durgesh_k_t
    👉Follow on Facebook / learncodewithdurgesh
    Disclaimer:
    All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.

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

  • @SARTHAK-IO
    @SARTHAK-IO 10 หลายเดือนก่อน +3

    Bhai bhai 😂🔥🔥🔥🔥, literally itne depth mei aaj tk kisi ne nh padhaya ,

  • @susmithanadar4034
    @susmithanadar4034 20 วันที่ผ่านมา +1

    You make coding feel so easy.

  • @naveedzaman3533
    @naveedzaman3533 4 หลายเดือนก่อน

    Hi Durgesh,
    After a considerable amount of time, I've finally found some valuable resources to study design patterns. Thank you very much. I'm from Lahore, Pakistan.
    Regards,
    Naveed Zaman

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

    It's good that you are maintaining a playlist general questions are asked in project interview that your project is based on which design pattern or what approach we need to use to accomplish this task which design pattern. etc..,

  • @ankukulhade786
    @ankukulhade786 11 หลายเดือนก่อน +1

    i have seen many video of singleton but never seen such video. Thanks for sharing.

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

    super explanation video is length but worth watching , thanks for your effort😊

  • @yashin8902
    @yashin8902 5 หลายเดือนก่อน

    Thank you so much for making these type of videos that makes complex topics very simple and easy.

  • @susmithanadar4034
    @susmithanadar4034 20 วันที่ผ่านมา

    Thank you for helping me prepare for my interviews. Your videos really matter to people like me.

  • @tanulakhwani
    @tanulakhwani 25 วันที่ผ่านมา

    Very easily understandable. Thanks

  • @rameshkumar-zk3or
    @rameshkumar-zk3or 10 หลายเดือนก่อน

    Very informative.

  • @shubhambhardwaj8894
    @shubhambhardwaj8894 11 หลายเดือนก่อน

    Sir apke examples se toh muh me pani aa jata hai🤤😋

  • @crazygirlsmruti3109
    @crazygirlsmruti3109 11 หลายเดือนก่อน

    Thank you....... very good explanation

  • @souravdas6918
    @souravdas6918 6 หลายเดือนก่อน

    bhai thank u.. jalebi samosa example se single ton pattern ka doubt clear ho gaya ....

  • @GauravKumar-pw8xr
    @GauravKumar-pw8xr 9 หลายเดือนก่อน +1

    Hello sir
    I like your videos a lot and admire your hardwork. Please please make a series on multi threading and concurrency.

  • @strangemate
    @strangemate 2 หลายเดือนก่อน

    Wow, must say gajab and super simple explanation..bahut badiya..may God bless you buddy

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

    Hi Durgesh,
    Thank you very much for your contribution for making us understand such complex technicality in such a layman way. Please keep doing the good work. However I will like to bring this in your notice that in Eager Initialization of Singleton as We have not created private constructor of class, We can create the object of the class anywhere else. And this might lead us to develop faulty singleton. I was going through coding practice of your code and I tried to create object of Jalebi class in Example class which allowed me to create 2 objects with new keyword and when I checked the hash code of these newly created objects, It was different.
    I might be wrong, Please help me.

  • @56_ashishsingh91
    @56_ashishsingh91 3 หลายเดือนก่อน

    Thank you for providing such quality content

  • @hrds479
    @hrds479 2 หลายเดือนก่อน +1

    glowing fire while typing nice it look amazing

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

    Thank you sir , itna ache se to paid course me bhi nahi sikha hoga kisi ne ....:)

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

    Next level sir ji 🔥🔥🔥

  • @photolab6712
    @photolab6712 4 หลายเดือนก่อน

    bohoti accha explanation and video..

  • @user-ks9bv2fh4m
    @user-ks9bv2fh4m หลายเดือนก่อน +1

    really very informative

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

    Just awwwsomeeeee💥💥💥💥,very informative.

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

    Awesome 😍

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

    very informative video

  • @heramsharma1747
    @heramsharma1747 5 หลายเดือนก่อน

    Very nice video
    As per expectation 🎉😊

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

    very good
    please make the live project using these design patterns

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

    Hi, your videos are so informative I learned a lot from your videos thank you for making informative videos for us. I have a request could you please make a video where linkedin and twitter used as social login platform instead of github and google that can be very useful. Please make a video on this topic

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

    Great sir

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

    Maza aaya sir 😘
    Aur ye maza pure software engineer ko milna chahiye 🤣

  • @Mrsakina570
    @Mrsakina570 2 หลายเดือนก่อน

    ur just great man

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

    awsome!

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

    got it sir thanks

  • @Yaduvanshi6532-Rohit-Yadav
    @Yaduvanshi6532-Rohit-Yadav 3 หลายเดือนก่อน

    #Radhe Radhe vrindavan se. H G❤

  • @LawrenceGates-zl9zp
    @LawrenceGates-zl9zp ปีที่แล้ว

    Waris Waheed from Pakistan, Love your content

  • @dailyyogaathome
    @dailyyogaathome 3 หลายเดือนก่อน

    Well explained Durgesh!
    Please create these videos for Python if possible!

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

    Thank you sir

  • @user-tp3fx6vf8n
    @user-tp3fx6vf8n 3 หลายเดือนก่อน

    It's very good video ❤

  • @GautamKumar-yv7li
    @GautamKumar-yv7li ปีที่แล้ว +1

    please make videos for data structures and algorithms

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

    ThankYou Sirji
    Sir Please make This Design PATTERN PlayList we Want More Videos

  • @v2factsandupdates327
    @v2factsandupdates327 5 หลายเดือนก่อน

    Awesome

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

    Wah! Ek video me 6 mahine ki semester ki parhai ho geya.

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

    Is it not like the static variable samosa in class when accessed by different threads can get its false state. For e.g t1 enters get it null and create it and then t2 enter but its updated state ie samosa is not null is not reflected for t2 then it can also lead to its creation . Basically keeping it volatile may solve the problem.

  • @theaveragesangeetkaar4620
    @theaveragesangeetkaar4620 23 วันที่ผ่านมา

    Thanks sir

  • @strangemate
    @strangemate 2 หลายเดือนก่อน

    Hi Durgesh, what is the reason of providing the class literal inside the synchronize block?

  • @JohnSmith-vm6ln
    @JohnSmith-vm6ln 2 หลายเดือนก่อน

    Bhai isko dekh ke bhuk lag gyi ;). Could have better example like DB connection class or something else.

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

    My name is Umair and I am From Pakistan Sir.
    Great Sir

  • @vinaychauhan7627
    @vinaychauhan7627 3 หลายเดือนก่อน

    Hi, I do have a question, Why are we using extra if condition and not making single if condition as synchronized block?

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

    Sir, please keep the background in light color. 😢
    Some students may have problem with reading dark theme. It's not properly visible. We have to keep brightness at Max. 😢

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

    Why we used if(Samosa==null) before and after the synchronized block, what is the issue if we use it only after the synchronized only?

  • @djj.-gq4dl
    @djj.-gq4dl 10 หลายเดือนก่อน

    Man only 1 Samosa for all? that's evil haha! i need atleast 5 instances of samosa lol. Love ur video. I am from California! Can you also share what does @Singleton does?

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

    Hello from Virginia.

  • @AnuragKumar-kf4ic
    @AnuragKumar-kf4ic ปีที่แล้ว +1

    Can you give example where to use lazy and where to use eager?

  • @shubhamsinghal7188
    @shubhamsinghal7188 3 หลายเดือนก่อน

    Sir, Poha bhi banado toh pura nashta hojaye 😍😍

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

    good

  • @user-yo5li3nn1p
    @user-yo5li3nn1p 6 หลายเดือนก่อน +1

    Rohit Kumar from Jharkhand

  • @shpreetamsingh1263
    @shpreetamsingh1263 6 หลายเดือนก่อน

    Hi first time connects successful with db by class object but after some time when I am calling again class object then db connection get time out.
    Any suggestions ?

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

    hello sir plz make a video on mockito test cases

  • @deepakkarmaDK
    @deepakkarmaDK 4 หลายเดือนก่อน

    Could please create series using c# ? Synchronised keyword not in c# .. so how it will work in c#

  • @rajdippal51
    @rajdippal51 11 หลายเดือนก่อน

    Please make a video how to create singleton pattern using enum

  • @lets_crack.
    @lets_crack. ปีที่แล้ว

    After singleton design pattern there is no video uploading yet.As soon as possible plz share us.😊

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

    Sir plz change themes

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

    saare design pattern par video daliye

  • @syedfaizan5841
    @syedfaizan5841 4 หลายเดือนก่อน

    ❤❤❤

  • @Abhishek-df5tf
    @Abhishek-df5tf 4 หลายเดือนก่อน

    Please use eclipse and change theam

  • @gangadeviksalimath3690
    @gangadeviksalimath3690 6 หลายเดือนก่อน

    Sir which software u are using

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

    Apka content bahut acha hota hai please change your keyboard 😂 bahut typo karta hai apka keyboard 😅

  • @geopluse6336
    @geopluse6336 3 หลายเดือนก่อน

    sir video dhekke bhuk laggaya

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

    Interview mein design pattern ke bare mein bahot puchte hai

  • @ArvindKumar-bh1yt
    @ArvindKumar-bh1yt 11 หลายเดือนก่อน

    Arvind Kumar, Working as Consultant, Pune

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

    👍🙏

  • @Abhishek-df5tf
    @Abhishek-df5tf ปีที่แล้ว

    Sir I request u
    Please Change theme

  • @mdshabu0901
    @mdshabu0901 5 หลายเดือนก่อน

    i am from bihar

  • @palkherohit1
    @palkherohit1 3 หลายเดือนก่อน

    have one question, what if we don't define constructor. Is it mandatory?

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

      if you don't define define constructor , JVM will invoke the default constructor. But when you define a constructor as your way it restrict the invoke of default constructor. For that it is mandatory.

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

    Use eclipse bro

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

    bhopal madhya pradesh

  • @sachinrathor8532
    @sachinrathor8532 14 วันที่ผ่านมา

    In egar way forgot to make constructor private.

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

    Pls change themes

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

    Simran from Rajasthan

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

    In Samosa, we are checking if(Samosa==null) and then creating an object, whereas in the case of Jalebi we are creating new object every time the get method called.
    So my question is why can't we remove the 'if check' in Samosa(I tried but it print different hashCode.
    Please help me anyone, I am new to Java and need some understanding.

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

      if we remove the if condition after that when we call the method it create new object every time in heap so, because of that your hash code always different. if we don't remove the if condition at first time it create object because there is null in samosa variable and after that it always give the that object which is store in samosa variable

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

    theme name pls

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

    Samiullah peshawar (Pakistan)

  • @ankitsrivastava2994
    @ankitsrivastava2994 6 หลายเดือนก่อน

    Isse bolten hi OverConfidence class Samosa.

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

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

    when halwai starts coding hahahhaha good video

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

    thank you sir