Тёмный

Double checked Locking in Singleton Design pattern | Java Interview Questions | Code Decode 

Code Decode
Подписаться 137 тыс.
Просмотров 21 тыс.
50% 1

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

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 55   
@sayanbiswas8847
@sayanbiswas8847 2 года назад
I had faced this question in one of my interviews. Thanks for bringing this up.
@CodeDecode
@CodeDecode 2 года назад
🙂 yeah its one of the imp concept of java. Its usually asked to check clarity on multiple topics of java like volatile, multithreading etc
@NagendraAnthati-k8k
@NagendraAnthati-k8k Год назад
actually now only I understand the double-checked locking of the singleton class, the way you explained the thread's behavior is Awesome. (except the last part cache). Thanks a ton for this great lecture. 🙂🙂🙂
@CodeDecode
@CodeDecode Год назад
Thanks 😊👍
@gyanprakash302
@gyanprakash302 2 года назад
Because of you guys I have become so much confident in Java ! I was good at dsa but you guys helped me a lot while cracking interviews of Accenture, Infosys, global logic and 7 others. Can't thank you enough
@CodeDecode
@CodeDecode 2 года назад
Many congratulations Gyan 🎉🎉👏👏well deserved 👍👍🙂🙂keep learning keep shining Man ⭐✨⭐✨
@shankardayal6928
@shankardayal6928 2 года назад
Please help me so that I can master DSA
@gyanprakash302
@gyanprakash302 2 года назад
@@shankardayal6928 Keep practicing from gfg and leetcode bro
@sproutboot
@sproutboot Год назад
9:30 your explanation always perfect. so easy to understand Thanks
@CodeDecode
@CodeDecode Год назад
Thanks a lot lee 🙂🙂
@akashsaha9366
@akashsaha9366 2 года назад
Awesome topic and explanation. Teach us more deep in this type of topics!!
@CodeDecode
@CodeDecode 2 года назад
Thanks akash 🙂👍sure 👍👍
@prathyushamovva5718
@prathyushamovva5718 10 месяцев назад
Hi Thanks for video could you please let me know in which Scenario we will use singleton design pattern
@nutankumari9977
@nutankumari9977 2 года назад
Nicely explained 👏..ur springboot. Questions were the ones asked in one my interview..thanks for creating n explaining the same
@CodeDecode
@CodeDecode 2 года назад
Thanks nutan for the nice words
@ganpatinatrajan5890
@ganpatinatrajan5890 Год назад
Excellent Explanations...👍👍👍
@CodeDecode
@CodeDecode Год назад
Thanks Ganpati 😊👍
@asifkamal166
@asifkamal166 11 месяцев назад
As far as i know if a code block is synchronized then only one thread can access it even if there are multiple thread running. Once a thread leaves that block only then other thread can access that block. If i am not wrong then is contradicts the volatile part of the video. Please correct me if i am wrong. Also thanks a lot for your videos.
@rekham4583
@rekham4583 2 года назад
Great Explanation!!! Thanks a lot. Keep creating more such videos.
@CodeDecode
@CodeDecode 2 года назад
Thanks rekha for the nice words
@manosij00roy
@manosij00roy 2 года назад
Cannot wait for the second part!! 😊😊😊😊 You're awesome
@CodeDecode
@CodeDecode 2 года назад
sure we will create it soon
@RockMB
@RockMB 2 года назад
Mam can you please make video on loggers and logging levels. Also on how to use ActiveMQ/ RabbitMQ
@CodeDecode
@CodeDecode 2 года назад
Sure Mayur 🙂👍
@sahukarinaveenkumar3188
@sahukarinaveenkumar3188 2 года назад
Thank you so much for your content.. can you please make a videos how reflection is internally used in spring?
@pratikkurbet3437
@pratikkurbet3437 2 года назад
Thanks mam for such informative videos 🙏🙏🙏 Please do video on spring profile concept in depth.
@CodeDecode
@CodeDecode 2 года назад
Sure Pratik 🙂👍
@bharukeerthi1986
@bharukeerthi1986 Год назад
Great🎉
@CodeDecode
@CodeDecode Год назад
Thanks 🙂❤
@chaitanya368
@chaitanya368 2 года назад
Hi, I'm trying to connect to Dbeaver which was shown one of your videos, but not able to establish connection. Can you provide any help on it. Thanks
@harikrishnab4930
@harikrishnab4930 2 года назад
Good explanation. Thank you.
@CodeDecode
@CodeDecode 2 года назад
you're welcome
@lohir446
@lohir446 2 года назад
Thank u for such a informative video 💯💯
@CodeDecode
@CodeDecode 2 года назад
Thanks 🙂👍
@narasaiahboga3579
@narasaiahboga3579 2 года назад
Awesome explanation 👌👍 please make the next video on Kafka.
@CodeDecode
@CodeDecode 2 года назад
ru-vid.com/group/PLyHJZXNdCXset6tBB1aY5aEY77YhbxWLo
@narasaiahboga3579
@narasaiahboga3579 2 года назад
I already watched these videos. I'm requesting you for kakfa implementation videos
@amarthyaseshu683
@amarthyaseshu683 2 года назад
Great explanation 🤠
@CodeDecode
@CodeDecode 2 года назад
Thanks Amarthya
@VinitUpare
@VinitUpare 2 месяца назад
At 17.03 , I think It would be T1 Not T2. ( T1 was about to write a new singleton instance ) , please correct me If I'm wrong.
@jayarajsg4800
@jayarajsg4800 2 года назад
Thanks!
@CodeDecode
@CodeDecode 2 года назад
You're welcome
@sergeykuznetsov3249
@sergeykuznetsov3249 Год назад
How is it possible for two threads to go in a one synchronized block?
@CodeDecode
@CodeDecode Год назад
Only 1 will go at a time
@motivation_hubPJ
@motivation_hubPJ Год назад
can you please answer this as you explain the use case of volatile but that should only arise when two thread's are accessing the same block at same time or preemption is happening but in any case the synchronised block must now allow the other thread to access because of the lock mechanism hence i am unable figure why you may want to use volatile here
@motivation_hubPJ
@motivation_hubPJ Год назад
@CodeDecode
@UmmakaJagadish
@UmmakaJagadish 2 года назад
expecting new video madam
@CodeDecode
@CodeDecode 2 года назад
sure we will create it soon
@THVNetworkOfficial
@THVNetworkOfficial 2 года назад
elbowcoughawesome yt
@CodeDecode
@CodeDecode 2 года назад
🙂🙂
@sagart9316
@sagart9316 2 года назад
Aaa
@THVNetworkOfficial
@THVNetworkOfficial 2 года назад
awsome
@CodeDecode
@CodeDecode 2 года назад
Thanks Thushan 🙂👍
@naleenyadav
@naleenyadav 2 года назад
Thanks !!
@CodeDecode
@CodeDecode 2 года назад
you're welcome
Далее
How many can you smash?🍫 IB : Florin
00:19
Просмотров 3,2 млн
다리찢기 고인물⁉️😱 Leg Splits Challenge
00:37
Dependency Injection, The Best Pattern
13:16
Просмотров 849 тыс.
Singleton and Double Checked Locking
7:57
Просмотров 31 тыс.
How many can you smash?🍫 IB : Florin
00:19
Просмотров 3,2 млн