Skip to content

mkyong.com

  • Spring Boot
  • Java Virtual Threads
  • Contact
  1. Home /
  2. design pattern

Tag: design pattern

design pattern March 18, 2016 5 min read by mkyong 2 comments

Java Builder pattern examples

The Builder Pattern in Java is a creational design pattern that helps in constructing complex objects step by step. Here are three examples of the Builder pattern in Java: 1. Building a User Profile This example models a User with optional fields using the Builder Pattern. User.java package com.mkyong.builder; class User { private final String […]

Read more Java Builder pattern examples
d
design pattern September 22, 2008 4 min read by mkyong 7 comments

Adapter Design Pattern

Adapter , Adapter , Adapter ~ Actually Adapter design pattern can consider as a simple conversion program / class. It usually used to make two incompatible interfaces or classes to work together. Please review below Adapter design pattern image draw by me, a bit ugly 🙂 Case Study Company A developed a program in Java […]

Read more Adapter Design Pattern

Java and Spring tutorials since 2008. Every example is a complete, runnable file, compiled and run on a real machine before it goes out.

About This Site

  • About
  • Editorial Policy
  • Contact
  • Code License
  • Privacy Policy
  • Terms of Use

© 2026 mkyong.com — Powered by WordPress

RSS