Home » java

java

Java 17: A Brief Overview of Features and Enhancements

Java 17 LTS is the latest release providing long-term support for the Java SE platform. According to the Oracle No-Fee Terms and Conditions License, JDK 17 binaries are permissible for use in production and can be redistributed without any associated costs. The abbreviation “LTS” denotes “long-term support,” and this release is slated for availability on […]

Java 17: A Brief Overview of Features and Enhancements Read More »

Command Pattern

The Command Pattern, alternatively referred to as the Action or Transaction pattern, belongs to the category of behavioral design patterns. It involves the conversion of a request into an independent object that encapsulates all relevant information about the request. This transformation enables the passing of requests as method arguments, facilitates the postponement or queuing of

Command Pattern Read More »

Prototype Pattern

The Prototype pattern is a creational design pattern that focuses on creating new objects by copying an existing object, called the prototype, rather than using constructors. This pattern is particularly useful when creating objects that are similar to existing ones, as it promotes code reusability and reduces the overhead of repeatedly initializing objects from scratch.

Prototype Pattern Read More »

Factory Method Pattern

The Factory Method is a design pattern that provides a way to create objects without specifying their exact classes. It lets you delegate the responsibility of creating objects to subclasses, allowing for flexible and adaptable object creation. Imagine you’re developing an application for managing a furniture business. In the initial version of your app, it’s

Factory Method Pattern Read More »

Java Design Patterns

Design patterns are like handy guides for solving common problems in how we create software. They’re a bit like ready-to-use templates that can be adjusted to fit the specific issues we face in our code.Remember, you can’t just grab a pattern and insert it exactly into your program, like using pre-made tools. A pattern isn’t

Java Design Patterns Read More »

Observer design pattern

In Java, the Observer pattern establishes a one-to-many dependency relationship among objects. As name suggest, we have 2 object: observer (there can be multiple observer) and observable. When an observable object changes its state, all registered observers are notified and updated automatically. This design promotes loose coupling, contributing to code maintainability and flexibility. Benefits The

Observer design pattern Read More »

Scroll to Top