---
title: "Discussion on \"Singleton Pattern - Java - Explained\" | Hashnode"
description: "Discussion on \"Singleton Pattern - Java - Explained\". java singleton design pattern explained.  singleton pattern with threadsafe , non thread-safe and static eagar instantiation of singleton class."
url: "https://hashnode.com/posts/singleton-pattern-java-explained/62d247ff20797904269d8d1d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Singleton Pattern - Java - Explained](https://www.adityatechinsights.com/singleton-pattern-java-explained?utm_source=hashnode&utm_medium=feed)

java singleton design pattern explained. singleton pattern with threadsafe , non thread-safe and static eagar instantiation of singleton class.

Jul 16, 2022 · 4 min read · adityatechinsights.com  
Read the article

-   [#design-patterns](https://hashnode.com/tag/design-patterns)
-   [#java](https://hashnode.com/tag/java)
-   [#designpatternsjava](https://hashnode.com/tag/designpatternsjava)

## Written by

[Aditya Chaudhari](https://hashnode.com/@Aditya24)

@Aditya24

  
[View profile](https://hashnode.com/@Aditya24)

Love IT Live IT Enjoy IT

building efficient, scalable and maintainable enterprise e-commerce applications | Technical Architect | SAP Commerce Cloud (hybris) | Java | Spring | Mirakl

## Responses 2

Markdown supported · ⌘↵ to post

[Nitin Khaitan](https://hashnode.com/@khaitannitin)

[Nov 11, 2022](https://hashnode.com/posts/singleton-pattern-java-explained/62d247ff20797904269d8d1d/comment/636ee10473a5a31bac261221)

Kudos for the excellent article.

Below is a good read about the design pattern for the database layer: medium.com / towards-polyglot-architecture / design-patterns-for-the-database-layer-7b741b126036

[Manas Mhade](https://hashnode.com/@manas1994)

[Jul 28, 2022](https://hashnode.com/posts/singleton-pattern-java-explained/62d247ff20797904269d8d1d/comment/62e1f98ed15a9fb24e5152f6)

Nice artical Aditya. If i want to make eagar instantiation thread safe then in that case, is it required to add syncronize block for EagerInstantiationSingleton getInstance method.
