Effective Java: Singletons

Photo by Noah Silliman on Unsplash

Time for chapter three of our Effective Java review. Today’s is a fairly simple one. Today we are talking about the singleton pattern. The singleton pattern is quite well known and basically comes down to an object that only allows instantiation once.

So what benefits does a singleton give us?

  • Expensive objects can be avoided being generated multiple times.

I'm a software architect that has a passion for software design and sharing with those around me

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Basic Security Configurations on JBOSS EAP 7

✅ CAN YOU PASS THE QUIZ AND WIN 300 USDT PRIZE POOL?

Scaffolding a project in rails

Ⲷnergy List Official Public Sale

Affinidi’s Presence at IIW

VPC Service Controls — Secured Data Sharing

How to Prepare a Rarity Table for a Generative NFT Art Programmer

Newsletter #2 — Feb 4th, 2022

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kyle Carter

Kyle Carter

I'm a software architect that has a passion for software design and sharing with those around me

More from Medium

[Coding Journal] Java — Method Overloading

Difference between throw & throws in Java?

Main Components of JVM

UML Diagrams for Java Developers