Skip to content

Glossary: Software Design Patterns in Java

Global mutable state

Also written: global state

Static data that any code can change, such as the old `orders` list or a changeable singleton. Tests then affect one another and results depend on test order.

Where the book teaches it

Related terms

SingletonAnti-pattern