Tag Archives: Java

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 »

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? »

char[] vs String for Passwords in Java: Which Is Safer?

By | August 24, 2026

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 String in Java because of the following reasons: 1. String is immutable in Java In… Read More: char[] vs String for Passwords in Java: Which Is Safer? »

SOLID Principles Java

By | December 6, 2023

The SOLID Principles Java are an object-oriented approach to software applications that has changed the way object-oriented applications are written by ensuring modularity, easy maintainability, easy understanding, easy to debug and refactor etc. The acronyms for SOLID principles are following: SOLID Principles Java Let us understand each of the Solid Design Principles Java with the… Read More: SOLID Principles Java »

Bean Validation – How to validate data using Bean Validation?

By | June 19, 2025

The Bean Validation API is used for the validation of constraints on an object model using annotations. It can be very useful for validating the length, format, regular expressions, etc. of an object model. By default, bean validation is a Java specification; we need to explicitly provide its implementation. Basics of Bean Validation API In… Read More: Bean Validation – How to validate data using Bean Validation? »

How to map Entity to DTO using ModelMapper?

By | June 18, 2025

The ModelMapper is a library that is used for converting/mapping two similar object models to each other in a simple and easy way. It is used when the two models have similar data, but their structures and use cases are different. ModelMapper allows us to convert one model to another without affecting the original object… Read More: How to map Entity to DTO using ModelMapper? »

How to Create Spring Boot Project using Spring Initializr?

By | June 18, 2025

Spring Boot is a microservice java-based framework which is built on top of the Spring framework. Spring Boot makes it easy to a create stand-alone, production-grade spring-based application that you can just run. Spring Boot benefits over Spring framework Steps By Step Implementation Step 1- Spring initializer In this step, we will create a spring… Read More: How to Create Spring Boot Project using Spring Initializr? »

Java OOPs – What is OOP in Java?

By | August 25, 2026

The Object Oriented Programming is a paradigm for designing programs using classes and objects. OOPs simplify and speed up software development and maintenance using concepts such as Object, Classes, Inheritance, Polymorphism, Abstraction and Encapsulation. Classes and Object in Java What is Object in Java? An object is a real-world, run-time entity. It has a state… Read More: Java OOPs – What is OOP in Java? »