Skip to content

Glossary: Software Design Patterns in Java

Singleton

A class that allows only one instance and hands everyone that same instance. A single-constant enum is Java's simplest safe version.

Where the book teaches it

Related terms

Global mutable stateenum