Mid GoF Patterns Lazy Initialization (with Thread Safety):? As shown in the example, lazy initialization is used to create the instance only when needed, with thread safety ensured by locking.