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

  Рет қаралды 106,267

Learn Code With Durgesh

Learn Code With Durgesh

Күн бұрын

Пікірлер: 117
@naveedzaman3533
@naveedzaman3533 10 ай бұрын
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
@SARTHAK-IO
@SARTHAK-IO Жыл бұрын
Bhai bhai 😂🔥🔥🔥🔥, literally itne depth mei aaj tk kisi ne nh padhaya ,
@hrds479
@hrds479 8 ай бұрын
glowing fire while typing nice it look amazing
@ankukulhade786
@ankukulhade786 Жыл бұрын
i have seen many video of singleton but never seen such video. Thanks for sharing.
@adityabhadoriya3191
@adityabhadoriya3191 Жыл бұрын
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..,
@souravdas6918
@souravdas6918 Жыл бұрын
bhai thank u.. jalebi samosa example se single ton pattern ka doubt clear ho gaya ....
@Kahanikduniya-q6i
@Kahanikduniya-q6i Жыл бұрын
Thank you sir , itna ache se to paid course me bhi nahi sikha hoga kisi ne ....:)
@susmithanadar4034
@susmithanadar4034 6 ай бұрын
You make coding feel so easy.
@Ritesh00777
@Ritesh00777 3 ай бұрын
Thanks durgesh Finally I found a good and simple explanation on design patterns it's easy to understand and adaptable
@ishaansharma8366
@ishaansharma8366 4 ай бұрын
Salute to you sir jee. My every single doubt is cleared for interview preparations. ❤❤❤❤❤
@susmithanadar4034
@susmithanadar4034 6 ай бұрын
Thank you for helping me prepare for my interviews. Your videos really matter to people like me.
@strangemate
@strangemate 8 ай бұрын
Wow, must say gajab and super simple explanation..bahut badiya..may God bless you buddy
@LuckyMarathon-vr4yl
@LuckyMarathon-vr4yl 5 ай бұрын
More than perfect ... very good explanation
@shubhambhardwaj8894
@shubhambhardwaj8894 Жыл бұрын
Sir apke examples se toh muh me pani aa jata hai🤤😋
@AtulSingh-k3c
@AtulSingh-k3c 17 күн бұрын
logical teaching technique, Sir, thank you. I am Atul singh from Lucknow
@raghavmanish24
@raghavmanish24 28 күн бұрын
ya it's so easy explanation ....thanku sir
@YadavAjay-f6u
@YadavAjay-f6u 5 ай бұрын
Good Tutorial Video. Thanks from Kathamndu , Nepal
@yashin8902
@yashin8902 11 ай бұрын
Thank you so much for making these type of videos that makes complex topics very simple and easy.
@sudiptakhotel1204
@sudiptakhotel1204 Ай бұрын
What an explanation , best
@heramsharma1747
@heramsharma1747 11 ай бұрын
Very nice video As per expectation 🎉😊
@abhinavsaxena3418
@abhinavsaxena3418 25 күн бұрын
Bhai aapne Eager way me private constructor kyu nhi bnaya?......Without uske hum kitne bhi object pna skte hain pizza ke. Please clearify these small mistakes can ruin our interviews. btw Awesome work , Thank you.
@photolab6712
@photolab6712 10 ай бұрын
bohoti accha explanation and video..
@mdtauseef5482
@mdtauseef5482 3 ай бұрын
Gazab bhai 💥💥💥
@shrabonisinha
@shrabonisinha 4 ай бұрын
Thank you so much. Outstanding explanation
@sgsenginier
@sgsenginier 3 ай бұрын
Awesome🙂Thanks.🙏
@saurcandy1600
@saurcandy1600 5 ай бұрын
Bro - bht bhala manus ho aap.
@tanulakhwani
@tanulakhwani 7 ай бұрын
Very easily understandable. Thanks
@shadan948
@shadan948 Жыл бұрын
Maza aaya sir 😘 Aur ye maza pure software engineer ko milna chahiye 🤣
@ashishSinghSengar17
@ashishSinghSengar17 9 ай бұрын
Thank you for providing such quality content
@GauravKumar-pw8xr
@GauravKumar-pw8xr Жыл бұрын
Hello sir I like your videos a lot and admire your hardwork. Please please make a series on multi threading and concurrency.
@SumitAnnapurne-o7b
@SumitAnnapurne-o7b 7 ай бұрын
really very informative
@Anil-mt2bm
@Anil-mt2bm 2 ай бұрын
really helpful thank you sir ji
@LawrenceGates-zl9zp
@LawrenceGates-zl9zp Жыл бұрын
Waris Waheed from Pakistan, Love your content
@pawanpathak6576
@pawanpathak6576 Жыл бұрын
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.
@the_shridhar
@the_shridhar Жыл бұрын
Next level sir ji 🔥🔥🔥
@MayureshDiaries
@MayureshDiaries Ай бұрын
Just a quick question. In Jalebi class we also have to make constructor private right?
@dailyyogaathome
@dailyyogaathome 9 ай бұрын
Well explained Durgesh! Please create these videos for Python if possible!
@varaprasadpamarthi2649
@varaprasadpamarthi2649 Жыл бұрын
super explanation video is length but worth watching , thanks for your effort😊
@DevendraKumawat-k7w
@DevendraKumawat-k7w 9 ай бұрын
It's very good video ❤
@GitanjaliKumari-v9h
@GitanjaliKumari-v9h 4 ай бұрын
thanks , nice explanation
@crazygirlsmruti3109
@crazygirlsmruti3109 Жыл бұрын
Thank you....... very good explanation
@rupeshpatil6005
@rupeshpatil6005 Жыл бұрын
ThankYou Sirji Sir Please make This Design PATTERN PlayList we Want More Videos
@Mrsakina570
@Mrsakina570 8 ай бұрын
ur just great man
@avrajitsikder9646
@avrajitsikder9646 7 ай бұрын
Just awwwsomeeeee💥💥💥💥,very informative.
@sukrit_shukla
@sukrit_shukla 2 ай бұрын
Hi @Durgesh, Using synchronized block will not work in distributed environment. We'll have to use enum for handling singleton creation in distributed environment.
@CodewithAIYoutubeChannel
@CodewithAIYoutubeChannel 9 ай бұрын
#Radhe Radhe vrindavan se. H G❤
@rameshkumar-zk3or
@rameshkumar-zk3or Жыл бұрын
Very informative.
@khizerhussain7613
@khizerhussain7613 2 ай бұрын
bestvideo brother
@unemployedcse3514
@unemployedcse3514 Жыл бұрын
Awesome 😍
@GautamKumar-yv7li
@GautamKumar-yv7li Жыл бұрын
please make videos for data structures and algorithms
@varnitajaiswal8569
@varnitajaiswal8569 Жыл бұрын
very informative video
@motivations2218
@motivations2218 7 ай бұрын
My name is Umair and I am From Pakistan Sir. Great Sir
@strangemate
@strangemate 8 ай бұрын
Hi Durgesh, what is the reason of providing the class literal inside the synchronize block?
@devkumar9889
@devkumar9889 5 ай бұрын
We can also use Static data and members instead of singleton ?
@callmeghostgamer
@callmeghostgamer Жыл бұрын
Apka content bahut acha hota hai please change your keyboard 😂 bahut typo karta hai apka keyboard 😅
@amitsaonerkar6640
@amitsaonerkar6640 Жыл бұрын
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.
@dProfessor_
@dProfessor_ Жыл бұрын
got it sir thanks
@ommehta4501
@ommehta4501 Жыл бұрын
very good please make the live project using these design patterns
@djj.-gq4dl
@djj.-gq4dl Жыл бұрын
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?
@sarahsheikh17
@sarahsheikh17 8 ай бұрын
Wah! Ek video me 6 mahine ki semester ki parhai ho geya.
@Javawala-i6z
@Javawala-i6z Жыл бұрын
Great sir
@prajjawalkumarpatel9360
@prajjawalkumarpatel9360 Жыл бұрын
saare design pattern par video daliye
@ketank6864
@ketank6864 Жыл бұрын
awsome!
@gangadeviksalimath3690
@gangadeviksalimath3690 Жыл бұрын
Sir which software u are using
@vinaychauhan7627
@vinaychauhan7627 9 ай бұрын
Hi, I do have a question, Why are we using extra if condition and not making single if condition as synchronized block?
@v2factsand327
@v2factsand327 11 ай бұрын
Awesome
@JohnSmith-vm6ln
@JohnSmith-vm6ln 8 ай бұрын
Bhai isko dekh ke bhuk lag gyi ;). Could have better example like DB connection class or something else.
@shubhamsinghal7188
@shubhamsinghal7188 9 ай бұрын
Sir, Poha bhi banado toh pura nashta hojaye 😍😍
@LowProfie_
@LowProfie_ Жыл бұрын
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. 😢
@sameerkadgaye2048
@sameerkadgaye2048 Жыл бұрын
Thank you sir
@rohitjaiswal946
@rohitjaiswal946 8 ай бұрын
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?
@deepakkarmaDK
@deepakkarmaDK 10 ай бұрын
Could please create series using c# ? Synchronised keyword not in c# .. so how it will work in c#
@Rohit-g3x6k
@Rohit-g3x6k Жыл бұрын
Rohit Kumar from Jharkhand
@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
@aparajitas4303
@aparajitas4303 Жыл бұрын
Hello from Virginia.
@AnuragKumar-kf4ic
@AnuragKumar-kf4ic Жыл бұрын
Can you give example where to use lazy and where to use eager?
@rajdippal51
@rajdippal51 Жыл бұрын
Please make a video how to create singleton pattern using enum
@shaikhgulab631
@shaikhgulab631 Жыл бұрын
Sir plz change themes
@Abhishek-df5tf
@Abhishek-df5tf 4 ай бұрын
Yes
@Abhishek-df5tf
@Abhishek-df5tf 4 ай бұрын
Why arr used dark theme
@RiteshSingh-q4b
@RiteshSingh-q4b 4 ай бұрын
Hi Durgesh, why you did not pass private constructor in eager way of creating singleton?
@palkherohit1
@palkherohit1 9 ай бұрын
have one question, what if we don't define constructor. Is it mandatory?
@avrajitsikder9646
@avrajitsikder9646 7 ай бұрын
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.
@shpreetamsingh1263
@shpreetamsingh1263 Жыл бұрын
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
@lets_crack.
@lets_crack. Жыл бұрын
After singleton design pattern there is no video uploading yet.As soon as possible plz share us.😊
@iamsaqeebpathan
@iamsaqeebpathan 2 ай бұрын
Last one is called double lock singleton design pattern
@chhaseebkhalid6499
@chhaseebkhalid6499 Жыл бұрын
good
@syedfaizan5841
@syedfaizan5841 10 ай бұрын
❤❤❤
@Abhishek-df5tf
@Abhishek-df5tf 10 ай бұрын
Please use eclipse and change theam
@khansamar6889
@khansamar6889 Жыл бұрын
Interview mein design pattern ke bare mein bahot puchte hai
@geopluse6336
@geopluse6336 10 ай бұрын
sir video dhekke bhuk laggaya
@YashSin2025
@YashSin2025 18 күн бұрын
Gu khale
@rohitjaiswal946
@rohitjaiswal946 8 ай бұрын
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 7 ай бұрын
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
@ArvindKumar-bh1yt
@ArvindKumar-bh1yt Жыл бұрын
Arvind Kumar, Working as Consultant, Pune
@Abhishek-df5tf
@Abhishek-df5tf Жыл бұрын
Sir I request u Please Change theme
@shahabu.developer
@shahabu.developer 11 ай бұрын
i am from bihar
@shubhangimahajan5089
@shubhangimahajan5089 Жыл бұрын
👍🙏
@sachinrathor8532
@sachinrathor8532 6 ай бұрын
In egar way forgot to make constructor private.
@onkarkatkar2582
@onkarkatkar2582 Жыл бұрын
theme name pls
@dipeshupadhyay5583
@dipeshupadhyay5583 25 күн бұрын
Hyderabad
@CuriousVivek
@CuriousVivek Жыл бұрын
Use eclipse bro
@simranarora2817
@simranarora2817 Жыл бұрын
Simran from Rajasthan
🔥3 Ways to break singleton pattern | Solution of Problem in detail | Hindi
18:36
🔥Lets understand Factory Design Pattern in Hindi
15:06
Learn Code With Durgesh
Рет қаралды 70 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Singleton Design Pattern | Implementation with details & code ✌🏻
21:09
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 902 М.
Singleton Design pattern in Java | Best Practice | Java Techie
16:00
🔥Builder Design Pattern in Hindi | Design Pattern Series
16:24
Learn Code With Durgesh
Рет қаралды 42 М.
What is Singleton Pattern in Java - How to achieve this?
15:21
Naveen AutomationLabs
Рет қаралды 23 М.
Strategy Pattern - Design Patterns (ep 1)
35:11
Christopher Okhravi
Рет қаралды 1,5 МЛН