Frage im Vorstellungsgespräch bei Tech Mahindra

What is singleton in java

Antwort im Vorstellungsgespräch

Anonym

5. Okt. 2024

In Java, a Singleton is a design pattern used to ensure that a class has only one instance and provides a global point of access to that instance. This is particularly useful when exactly one object is needed to coordinate actions across the system.