Factory design pattern in Java

By | August 30, 2023

Factory Design Pattern is a way of creating objects without directly specifying their exact class. Instead of creating objects using the new keyword, we hand over the object creation process to a separate factory class. This factory class is responsible for creating instances of different sub-classes or classes based on certain conditions. It helps us… Read More: Factory design pattern in Java »

Share this article

How to make YAML to Java object

By | June 17, 2025

YAML stands for YAML Ain’t Markup Language also know as Yet Another Markup Language, It is a popular configuration format used to define application properties and settings in a more human-readable manner. It is an alternative to the traditional properties file format (.properties), commonly used in Java applications. In this tutorial, we will learn to… Read More: How to make YAML to Java object »

Share this article

How to break Singleton pattern in Java – 3 ways

By | June 18, 2025

The singleton design pattern restricts a class to having only one instance and provides a global point of access to that single instance. To learn more about the singleton pattern, please refer to Singleton design pattern and Singleton class in Java. In this tutorial, we are going to learn how we can break Singleton pattern in… Read More: How to break Singleton pattern in Java – 3 ways »

Share this article

How to make Singleton design pattern in Java?

By | June 22, 2025

The singleton design pattern restricts a class to having only one single instance and provides a global point of access to that single instance. In other words, A singleton class must return the same instance no matter how many times an application requests it. i.e., the same single instance should be used by all the… Read More: How to make Singleton design pattern in Java? »

Share this article

How to configure multiple database in Spring Boot

By | June 18, 2025

In Enterprise applications, we may be required to have multiple databases for storing different kinds of information. For example, in an e-commerce application, it may be required to keep the user’s information in a different database, product-related information in a different database, and payment-related information in a separate database. In this tutorial, we will configure… Read More: How to configure multiple database in Spring Boot »

Share this article

Spring Profile – How to configure different environments in Spring Boot?

By | November 5, 2024

Spring Boot Profile Spring profile is a feature of the Spring framework that allows us to map a part of our application or the complete application to different profiles. i.e., environments (dev, uat or prod). Any @Component or the @Configurations of an application can be marked with the @Profile annotation to limit its scope to… Read More: Spring Profile – How to configure different environments in Spring… »

Share this article

Jenkins – What & How to build Jenkins pipeline?

By | October 17, 2024

In Jenkins, a pipeline is a workflow with a group of events or jobs that are linked to each other in a sequence. The Jenkins pipeline is a process of continuous delivery automation using Jenkins jobs (items). In the Jenkins pipeline, each job contains some processing inlets and outlets. For example, Build->Deploy->Test->Release are the different… Read More: Jenkins – What & How to build Jenkins pipeline? »

Share this article

Why use the char[] array for storing passwords over strings in Java?

By | June 18, 2025

A string is an object in Java that represents a sequence of character values. Strings are immutable, which means once they are created, we cannot change their value. It is recommended to use the char[] array for storing passwords over strings in Java because of following reasons: 1. Strings are immutable In Java, the memory… Read More: Why use the char[] array for storing passwords over strings… »

Share this article