Тёмный

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

Learn Code With Durgesh
Подписаться 298 тыс.
Просмотров 92 тыс.
50% 1

In this video we are going to learn about the single design pattern in detail with examples.
Full Playlist: • Design Patterns Tutori...
Article Link: learncodewithd...
Telegram Link for Doubt: t.me/learncode...
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 - RU-vid 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): learncodewithd...
👉Telegram Discussion Group: t.me/learncode...
👉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.

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 105   
@susmithanadar4034
@susmithanadar4034 3 месяца назад
Thank you for helping me prepare for my interviews. Your videos really matter to people like me.
@ishaansharma8366
@ishaansharma8366 Месяц назад
Salute to you sir jee. My every single doubt is cleared for interview preparations. ❤❤❤❤❤
@devkumar9889
@devkumar9889 3 месяца назад
We can also use Static data and members instead of singleton ?
@SumitAnnapurne-o7b
@SumitAnnapurne-o7b 4 месяца назад
really very informative
@GitanjaliKumari-v9h
@GitanjaliKumari-v9h 2 месяца назад
thanks , nice explanation
@shadan948
@shadan948 Год назад
Maza aaya sir 😘 Aur ye maza pure software engineer ko milna chahiye 🤣
@SARTHAK-IO
@SARTHAK-IO Год назад
Bhai bhai 😂🔥🔥🔥🔥, literally itne depth mei aaj tk kisi ne nh padhaya ,
@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..,
@Rohit-g3x6k
@Rohit-g3x6k 9 месяцев назад
Rohit Kumar from Jharkhand
@Abhishek-df5tf
@Abhishek-df5tf Месяц назад
Why arr used dark theme
@shaikhgulab631
@shaikhgulab631 Год назад
Sir plz change themes
@Abhishek-df5tf
@Abhishek-df5tf Месяц назад
Yes
@rupeshpatil6005
@rupeshpatil6005 Год назад
ThankYou Sirji Sir Please make This Design PATTERN PlayList we Want More Videos
@susmithanadar4034
@susmithanadar4034 3 месяца назад
You make coding feel so easy.
@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. 😢
@khansamar6889
@khansamar6889 Год назад
Interview mein design pattern ke bare mein bahot puchte hai
@RiteshSingh-q4b
@RiteshSingh-q4b Месяц назад
Hi Durgesh, why you did not pass private constructor in eager way of creating singleton?
@naveedzaman3533
@naveedzaman3533 7 месяцев назад
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
@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.
@prajjawalkumarpatel9360
@prajjawalkumarpatel9360 Год назад
saare design pattern par video daliye
@rohitjaiswal946
@rohitjaiswal946 5 месяцев назад
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 4 месяца назад
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
@rohitjaiswal946
@rohitjaiswal946 5 месяцев назад
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?
@sachinrathor8532
@sachinrathor8532 3 месяца назад
In egar way forgot to make constructor private.
@dailyyogaathome
@dailyyogaathome 6 месяцев назад
Well explained Durgesh! Please create these videos for Python if possible!
@GautamKumar-yv7li
@GautamKumar-yv7li Год назад
please make videos for data structures and algorithms
@AnuragKumar-kf4ic
@AnuragKumar-kf4ic Год назад
Can you give example where to use lazy and where to use eager?
@hrds479
@hrds479 6 месяцев назад
glowing fire while typing nice it look amazing
@vinaychauhan7627
@vinaychauhan7627 6 месяцев назад
Hi, I do have a question, Why are we using extra if condition and not making single if condition as synchronized block?
@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.
@strangemate
@strangemate 5 месяцев назад
Hi Durgesh, what is the reason of providing the class literal inside the synchronize block?
@shpreetamsingh1263
@shpreetamsingh1263 9 месяцев назад
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 ?
@deepakkarmaDK
@deepakkarmaDK 7 месяцев назад
Could please create series using c# ? Synchronised keyword not in c# .. so how it will work in c#
@JohnSmith-vm6ln
@JohnSmith-vm6ln 6 месяцев назад
Bhai isko dekh ke bhuk lag gyi ;). Could have better example like DB connection class or something else.
@Abhishek-df5tf
@Abhishek-df5tf 7 месяцев назад
Please use eclipse and change theam
@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?
@Ritesh00777
@Ritesh00777 24 дня назад
Thanks durgesh Finally I found a good and simple explanation on design patterns it's easy to understand and adaptable
@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.
@strangemate
@strangemate 5 месяцев назад
Wow, must say gajab and super simple explanation..bahut badiya..may God bless you buddy
@palkherohit1
@palkherohit1 6 месяцев назад
have one question, what if we don't define constructor. Is it mandatory?
@avrajitsikder9646
@avrajitsikder9646 4 месяца назад
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.
@YadavAjay-f6u
@YadavAjay-f6u 2 месяца назад
Good Tutorial Video. Thanks from Kathamndu , Nepal
@callmeghostgamer
@callmeghostgamer Год назад
Apka content bahut acha hota hai please change your keyboard 😂 bahut typo karta hai apka keyboard 😅
@geopluse6336
@geopluse6336 7 месяцев назад
sir video dhekke bhuk laggaya
@ankukulhade786
@ankukulhade786 Год назад
i have seen many video of singleton but never seen such video. Thanks for sharing.
@raj_0119
@raj_0119 26 дней назад
1 samosa se kam nhi chalega 😂😂😂
@ankitsrivastava2994
@ankitsrivastava2994 10 месяцев назад
Isse bolten hi OverConfidence class Samosa.
@ankitsrivastava2994
@ankitsrivastava2994 10 месяцев назад
Now Samosa become balti
@ArvindKumar-bh1yt
@ArvindKumar-bh1yt Год назад
Arvind Kumar, Working as Consultant, Pune
@shrabonisinha
@shrabonisinha Месяц назад
Thank you so much. Outstanding explanation
@ashishSinghSengar17
@ashishSinghSengar17 6 месяцев назад
Thank you for providing such quality content
@yashin8902
@yashin8902 8 месяцев назад
Thank you so much for making these type of videos that makes complex topics very simple and easy.
@lets_crack.
@lets_crack. Год назад
After singleton design pattern there is no video uploading yet.As soon as possible plz share us.😊
@motivations2218
@motivations2218 5 месяцев назад
My name is Umair and I am From Pakistan Sir. Great Sir
@rajdippal51
@rajdippal51 Год назад
Please make a video how to create singleton pattern using enum
@sgsenginier
@sgsenginier 18 дней назад
Awesome🙂Thanks.🙏
@LawrenceGates-zl9zp
@LawrenceGates-zl9zp Год назад
Waris Waheed from Pakistan, Love your content
@LuckyMarathon-vr4yl
@LuckyMarathon-vr4yl 2 месяца назад
More than perfect ... very good explanation
@souravdas6918
@souravdas6918 9 месяцев назад
bhai thank u.. jalebi samosa example se single ton pattern ka doubt clear ho gaya ....
@sarahsheikh17
@sarahsheikh17 5 месяцев назад
Wah! Ek video me 6 mahine ki semester ki parhai ho geya.
@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
@shubhamsinghal7188
@shubhamsinghal7188 6 месяцев назад
Sir, Poha bhi banado toh pura nashta hojaye 😍😍
@poojarath7087
@poojarath7087 2 месяца назад
Thank u sir 🙏
@shahabu_java
@shahabu_java 8 месяцев назад
i am from bihar
@Abhishek-df5tf
@Abhishek-df5tf Год назад
Sir I request u Please Change theme
@Kahanikduniya-q6i
@Kahanikduniya-q6i Год назад
Thank you sir , itna ache se to paid course me bhi nahi sikha hoga kisi ne ....:)
@heramsharma1747
@heramsharma1747 9 месяцев назад
Very nice video As per expectation 🎉😊
@theaveragesangeetkaar4620
@theaveragesangeetkaar4620 4 месяца назад
Thanks sir
@mdtauseef5482
@mdtauseef5482 Месяц назад
Gazab bhai 💥💥💥
@debbrataroy7276
@debbrataroy7276 Месяц назад
Thanks sir
@varaprasadpamarthi2649
@varaprasadpamarthi2649 Год назад
super explanation video is length but worth watching , thanks for your effort😊
@ajinkyajadhav7665
@ajinkyajadhav7665 Год назад
hello sir plz make a video on mockito test cases
@tanulakhwani
@tanulakhwani 4 месяца назад
Very easily understandable. Thanks
@ommehta4501
@ommehta4501 Год назад
very good please make the live project using these design patterns
@shrad6611
@shrad6611 11 месяцев назад
when halwai starts coding hahahhaha good video
@gangadeviksalimath3690
@gangadeviksalimath3690 10 месяцев назад
Sir which software u are using
@Medsacollection
@Medsacollection Год назад
Samiullah peshawar (Pakistan)
@crazygirlsmruti3109
@crazygirlsmruti3109 Год назад
Thank you....... very good explanation
@syedfaizan5841
@syedfaizan5841 8 месяцев назад
❤❤❤
@photolab6712
@photolab6712 7 месяцев назад
bohoti accha explanation and video..
@Radhe_Krishna2245
@Radhe_Krishna2245 6 месяцев назад
#Radhe Radhe vrindavan se. H G❤
@DevendraKumawat-k7w
@DevendraKumawat-k7w 6 месяцев назад
It's very good video ❤
@saurcandy1600
@saurcandy1600 2 месяца назад
Bro - bht bhala manus ho aap.
@simranarora2817
@simranarora2817 Год назад
Simran from Rajasthan
@aparajitas4303
@aparajitas4303 Год назад
Hello from Virginia.
@SubelalPal
@SubelalPal Год назад
Pls change themes
@Mrsakina570
@Mrsakina570 5 месяцев назад
ur just great man
@v2factsandupdates327
@v2factsandupdates327 8 месяцев назад
Awesome
@CuriousVivek
@CuriousVivek Год назад
Use eclipse bro
@shubhambhardwaj8894
@shubhambhardwaj8894 Год назад
Sir apke examples se toh muh me pani aa jata hai🤤😋
@dProfessor_
@dProfessor_ 11 месяцев назад
got it sir thanks
@lalit28689
@lalit28689 Год назад
thank you sir
@sameerkadgaye2048
@sameerkadgaye2048 Год назад
Thank you sir
@varnitajaiswal8569
@varnitajaiswal8569 Год назад
very informative video
@ayushjain7758
@ayushjain7758 Год назад
bhopal madhya pradesh
@unemployedcse3514
@unemployedcse3514 Год назад
Awesome 😍
@the_shridhar
@the_shridhar Год назад
Next level sir ji 🔥🔥🔥
@ketank6864
@ketank6864 Год назад
awsome!
@chhaseebkhalid6499
@chhaseebkhalid6499 Год назад
good
@onkarkatkar2582
@onkarkatkar2582 Год назад
theme name pls
@ainulkhan7292
@ainulkhan7292 Год назад
Great sir
@rameshkumar-zk3or
@rameshkumar-zk3or Год назад
Very informative.
@shubhangimahajan5089
@shubhangimahajan5089 Год назад
👍🙏
@avrajitsikder9646
@avrajitsikder9646 4 месяца назад
Just awwwsomeeeee💥💥💥💥,very informative.
Далее
HA-HA-HA-HA 👫 #countryhumans
00:15
Просмотров 565 тыс.
🔥Lets understand Factory Design Pattern in Hindi
15:06
Singleton Pattern - Design Patterns (ep 6)
20:09
Просмотров 250 тыс.