Pedro Lopes
open-menu closeme
Home
About
linkedin rss
  • Singleton Design Pattern in Java: 6 Implementations with Code Examples

    calendar Feb 6, 2023 · 8 min read · java design pattern singleton  ·
    Share on: twitter facebook linkedin copy
    Singleton Design Pattern in Java: 6 Implementations with Code Examples

    This article shows the details behind what is and why use the Singleton Pattern with 6 code implementations in Java. We'll discuss lazy and eager initializations, the enum Singleton, and thread safety.


    Read More

Pedro Lopes

Engineer, Writer, Traveler, Photographer Teacher, and Perpetual Student.
Read More

Disclaimer

The opinions expressed on this site are my own personal opinions and do not represent my employer’s view in any way.

Featured Posts

  • Create a movie recommendation system using the RAG technique, Spring AI, and neo4j vector store

Recent Posts

  • Why and How to use Spring AI: Interacting with llama3 and Ollama
  • What is an AI chatbot? Examples with zero and few shot prompts
  • ZonedDateTime in Java: Convert Between Timezones and Handle Daylight-Saving Time Automatically

Categories

JAVA-CORE 9 ARTIFICIAL-INTELLIGENCE 3 OBJECT-ORIENTED-PROGRAMMING 3 JAVA-STREAM 2 SPRING-AI 2 CORE-SPRING 1 DESIGN-PATTERNS 1

Series

SPRING-AI-RECOMMENDATION-SYSTEMS 2 DESIGN-PATTERNS-IN-JAVA 1 SPRING-AI-CHATBOT 1

Tags

JAVA-CLASS 2 JAVA-GENERIC 2 JAVA-SEARCH 2 JAVA-STRING 2 AI 1 CHATBOT 1 JAVA-DESIGN-PATTERN 1 JAVA-EXCEPTION 1 JAVA-OPERATOR 1 JAVA-RECORD 1 JAVA-TIME 1 LLAMA3 1 NEO4J-VECTOR-STORE 1 OLLAMA 1
All Tags
AI1 CHATBOT1 JAVA-CLASS2 JAVA-DESIGN-PATTERN1 JAVA-EXCEPTION1 JAVA-GENERIC2 JAVA-OPERATOR1 JAVA-RECORD1 JAVA-SEARCH2 JAVA-STRING2 JAVA-TIME1 LLAMA31 NEO4J-VECTOR-STORE1 OLLAMA1 RAG-TECHNIQUE1 SINGLETON1 SPRING-AI-CHATBOT1 SPRING-AI-RAG1 SPRING-INIT1
[A~Z][0~9]
Copyright (c) 2020 Chip Zoller and Dan Weru

Copyright 2022- 2025 COPYRIGHT (C) 2020 CHIP ZOLLER AND DAN WERU. All Rights Reserved

to-top