Singleton Design Pattern in Java with all Scenarios java Core Java Design by devs5003 - February 1, 2024February 16, 20249 In this article, we will go through all the scenarios of the Singleton pattern to make it crystal clear. From the definition, it seems to be a very simple design pattern but when it comes to implementation, it creates a lot of implementation concerns. Also, the implementation of Java Singleton pattern has always been a controversial topic among developers. Here, we will learn about Singleton Design Pattern in Java with all Scenarios, different ways to implement Singleton design pattern and some of the best practices for its usage. Sometimes, we get the requirement for some classes to have exactly one instance. There are many occasions when we need only one instance of the Object and if we instantiate more than one,
Creational Design Patterns In Java Design Core Java java by devs5003 - June 13, 2021February 2, 20244 As the first part of Design Patterns in Java, we will discuss about Creational Design Patterns in Java in this article. We have already covered the Introduction of Design Patterns in Java in a separate article. In the introductory part, we have already discussed about What, Why & advantages of Design Patterns. We will discuss five design patterns in total in this article that come under the category of Creational Design Patterns. Creational design patterns deal with providing solutions to instantiate an object in the best possible way for specific situations. Let's start with our topic 'Creational Design Patterns in Java' and other concepts related to it. What are Creational Design Patterns in Java? Creational design patterns provide solution to instantiate an object