The Singleton Pattern [Java Interview Questions Made Easy]

preview_player
Показать описание
The Singleton Pattern [Java Interview Questions Made Easy]

_______

In this episode you will learn:
- What the Singleton Pattern is
- How to implement this pattern depending on specific contexts: eager loading, lazy loading, thread safety
- Why implementing the Singleton pattern using an enum might be the safest solution
_______

Check out the latest programming articles on my blog:

_______

Say hi on social:
Рекомендации по теме
Комментарии
Автор

Great stuff, this kind of videos are very helpful!
First time i see the enum approach to this!

xGrofx
Автор

Nice informative videos, would be nice if you could make a Java from scratch series!

Alexandra-jzcd
Автор

You've forgot to provide the name &/ link to the mentioned book.

beshmaster
Автор

How come you dont name it "getInstance"? - wouldnt it be easier for developers to read the code? :)

skvgaard