In this article, we will look at some fundamental concepts of Java Design Pattern and then most popular Java Design Patterns Book. Keep in mind that there is always a possibility to improve your software. If you have a good catch on Java Design Patterns, you will always be able to find a possibility to improve your software. Let's first talk about the complications we may face if we haven't ever read any Java Design Patterns book. If I ask you to list down all the Design Patterns used in your current project module, would you be able to accomplish it? If yes, you have read a book and you are here to sharpen your skills in Design Patterns. Let's assume
Tag: Singleton design pattern
Singleton Design Pattern in Java with all Scenarios
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
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