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,
ORM vs JDBC in Java Full Stack Development Database Design java by devs5003 - January 26, 2024February 10, 20241 Java full-stack development involves the development a whole application utilizing the Java programming language across all layers of the stack. The front-end or user interface layer, the back-end or server-side layer, and the database layer are all typical components of a software stack. The front-end layer is in charge of creating the user interface and managing user interactions in Java full-stack development. HTML, CSS, JavaScript, and Java frameworks like JavaServer Pages (JSP), JavaServer Faces (JSF), or Spring MVC are frequently utilized in this layer. Database Integration in Java Full Stack Development to store and retrieve data is an essential part of full-stack development. Developers in Java have two primary options for integrating databases: ORM (Object-Relational Mapping) and JDBC (Java Database Connectivity)
Java Design Patterns Core Java Design Design Patterns java by devs5003 - January 20, 2022September 29, 20240 If you want to learn 'Java Design Patterns' in less time without missing any concept, you are at the right place. Moreover, if you want to appear in a Java interview, go through this article once. Additionally, If you want to have a quick revision of your concepts on Java Design Patterns which you had learnt a log time before, then also you are at the right place. However, if you are looking for one liner definition of each Design Pattern to memorize them, then also you are at the right place. Then, visit the last section of this article (Design Pattern's Cheat Sheet). In this article, we will discuss about all GoF (Gang of Four) design patterns. The 23 design
Behavioral Design Patterns In Java Design Core Java java by devs5003 - June 22, 2021February 2, 20240 In continuation of the second part of Design Patterns in Java, we will discuss about Behavioral Design Patterns in Java in this article. We have already covered Creational Design Patterns in Java, and Structural Design Pattern in the first & the second part respectively. The Behavioral Design Patterns deal with better interaction between objects and to provide loose coupling and flexible design. Moreover, they use various techniques to make communication between objects easier. We will discuss eleven design patterns in total in this article that come under the category of Behavioral Design Pattern. Let’s start discussing our topic ‘Behavioral Design Patterns In Java’. What are Behavioral Design Patterns in Java? Behavioral Design Patterns offer solution for the better interaction between objects and how
Structural Design Patterns In Java Design Core Java java by devs5003 - June 18, 2021February 2, 20241 In continuation of the first part of Design Patterns in Java, we will discuss about Structural Design Patterns In Java in this article. We have already covered Creational Design Patterns in Java in the first part as mentioned. The Structural Design Patterns deal with different ways to create a class structure. Moreover, they use Inheritance and Composition techniques to create larger objects from small objects. We will discuss seven design patterns in total in this article that come under the category of Structural Design Pattern. Let's start discussing our topic 'Structural Design Patterns In Java'. What are Structural Design Patterns in Java? Structural patterns provide different ways to create a class structure, for example, using inheritance and composition to create a large
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