Abstract Factory Design pattern comes under the creational patterns and it shows many similarities to the Factory Pattern. The abstract factory works as a factory of factories which generates other factories by providing an extra abstraction layer. The generated factory from an abstract factory pattern always generates the object as per the factory design pattern. In other words, We can [...]
Introduction Hello Geeks.! This tutorial will explain the basic idea about the log4j2, it's uses and the main reasons to upgrade to log4j2 from log4j. Let's get started with the introduction of log4j2 along with the step by step implementation and configuration tuning in this log4j tutorial. 1. Architecture of log4j2 Applications using Log4j2 will request a Logger with a [...]
Singleton works on the concept of one and only one instance of the object, which results in the global control of a resource. In simple words, the Singleton design pattern ensures that only one instance of the class will be created and that instance will have global access within the application. Singleton Design pattern is the most extensively used design [...]
The Factory design pattern is a part of the creational design pattern. It works on the concept of Encapsulation by hiding the object's instantiation logic from the client. The factory Design pattern is the second most used design pattern in the creational patterns category, after the singleton pattern. The factory pattern is just opposite to the concept of the singleton [...]
Software Design patterns in java are a custom set of practices that are reusable and used in programming. They solve the most common design-related problems in software development. The basic idea for creating the Design patterns is creating the relationship between classes and objects in a different way resulting in fast development along with a more flexible, reusable and maintainable [...]
Today, all the Organisations are moving to Spring boot which is obvious and a smarter way to increase the productivity and features provided. And if you are preparing for your next JAVA Interview then don't be surprised hearing Spring boot questions. Spring boot questions are the most asked questions in the advanced java interview and you should be ready to [...]
Project Lombok is a Java library that automatically plugs into your editors like an eclipse or IntelliJ and builds tools and helps reduce the boilerplate code. In this tutorial, you will learn how Lombok help us to create getter, setters, toString, constructor, equals, hashCode methods, etc automatically. This article mainly includes information about Project Lombok and it's annotations with examples.