Intermediate Java
Q72 / 100

What is the Singleton design pattern?

Correct! Well done.

Incorrect.

The correct answer is B) A pattern ensuring a class has only one instance with global access

B

Correct Answer

A pattern ensuring a class has only one instance with global access

Explanation

Singleton restricts instantiation to one object, typically using a private constructor and a static getInstance() method.

Progress
72/100