Skip to content
Jstobigdata Logo Jstobigdata Logo Jstobigdata Logo
  • Java™
    • Microservices TutorialNew
    • Spring Core Tutorial
    • Spring AOP Tutorial
    • Project Reactor Tutorial
    • RabbitMQ Tutorial
    • JMS 2.0 Tutorial
    • Design patterns
    • JPA with Hibernate
    • Apache Maven
  • ML
    • Numpy Crash Course – Data Science
    • Pandas: Data exploration
  • JavaScript
    • Data Structure and Algorithm
    • RxJS Tutorial
  • Product Engineering
    • Agile Project Management
  • DevOps
    • Kubernetes Tutorials
    • Docker Tutorial
    • Git
  • YouTube

All Posts

  1. Home
  2. All Posts
  • Docker Tutorial
    • Advanced Docker Tutorial
    • Docker introduction
    • Docker architecture
    • Docker installation
    • Docker hello-world
    • Docker image in depth
    • Docker container in depth
    • Container logs & process info
    • Data management in docker
    • Docker network configuration
    • Docker compose
    • Docker-compose cheatsheet
    • Docker Secrets overview
  • Microservices Tutorial
    • Introduction to Microservices
    • The API Gateway Pattern
    • Service Discovery Patterns
    • Circuit Breaker Pattern
  • RxJS Tutorial Home
    • RxJS introduction
    • RxJS Building Blocks
    • RxJS Observable
    • RxJS Subscription
    • RxJS Subject
    • RxJS Scheduler
    • RxJS buffer operator
    • RxJS ajax operator – Creation operators
  • Design Pattern Tutorial
    • Design patterns Introduction
    • Abstract Factory Pattern
    • Builder Design Pattern
    • Factory Design Pattern
    • Prototype Design Pattern
    • Singleton Design Pattern
    • Object Pool Design Pattern
    • Adapter Design Pattern
    • Bridge Design Pattern
  • JPA Tutorial
    • Advanced JPA Tutorial with Hibernate
    • Introduction to JPA and Hibernate
    • Basic Entity Mapping & Access Type
    • Steps to persist an Entity
    • Different Entity states
    • Entity class mapping in details
    • Identifiers overview & generation strategy
    • Composite Identifier – @EmbeddedId, @IdClass
  • Apache Maven Tutorial
    • Apache Maven Tutorial
    • Apache maven introduction
    • Apache Maven installations
    • Create a simple maven project
    • Maven core concepts
    • Spark API app in Maven
    • Build lifecycle & effective pom
    • Maven plugins in-depth
    • Essential maven plugins
    • Maven site – project documentation

Table of Contents

  • When to use the singleton design pattern.
  • Example of Basic Singleton Class.
  • Approaches of Singleton Design pattern.
    • 1. Static Block Approach:
    • 2. Thread-safe Singleton:
    • 3. Bill Pugh’s solution Approach (Lazy loading with inner class).
    • 4. Eager Loading
  • Use-case of Singleton Design Pattern.
Join on Gitter
Github
© Copyright | All Rights Reserved | Created by Bikram Kundu | Sitemap
FacebookLinkedInReddit
Page load link
Jstobigdata uses cookies and third party services. OK
Go to Top