Abstract Factory Pattern in Java: Creating Families of Related Objects Without Knowing Their Concrete Classes

Description / Meta Description Learn the Abstract Factory Design Pattern in Java with practical examples. Understand how it differs from Factory Method, when to use it, and how it helps create entire families of related objects while keeping your code loosely coupled and highly extensible. Abstract Factory Pattern in Java: Creating Families of Related Objects Without Knowing Their Concrete Classes…

How Spring Boot Handles Concurrent Requests: Platform Threads vs Virtual Threads Explained

What really happens when 10,000 users hit your Spring Boot API simultaneously? Does Spring Boot create 10,000 threads? Does Tomcat queue requests? And can Java Virtual Threads genuinely change backend scalability? If you've worked on Spring Boot systems in production, you've likely tuned thread pools, investigated latency spikes, or stared at CPU graphs wondering why throughput collapsed under load. Understanding…

Java – Design Patterns

Common Design Patterns The Java API and applications are built using many common design patterns and conventions. Some of them represent original GoF patterns. Singleton Factory Builder Adapter Facade Proxy Observer Command Iterator Singleton A Singleton is a class for which we can have only one instance. This is roughly the equivalent of a class having all static methods. Note…

Java – The basics

The three principals of OOP are as follows: Encapsulation is the simplest of all. It means that data of the object and operations on the data are packaged together in one class. Inheritance lets us base a new class on existing one, where we choose common functionality. Java includes 2 types of inheritance. Implementation : With this the subclass includes…

Java 8 to 21 journey & Graal VM

Introduction Java 1.1 introduced inner classes. Java 2 introduced Swing and Collections. Java 5 introduced Generics. Java 8 - introduced March 2014 Lambda expressions : A concise way to represent a method interface using an expression. Lambda expressions are useful for passing functionality as an argument to methods. Lambda Expressions, a new language feature, has been introduced in this release. They…