Home » JAVA Programming » Java Basic » Question
  1. Which design pattern ensures that only one object of particular class gets created?
    1. State pattern
    2. Bridge pattern
    3. Singleton pattern
    4. Filter pattern
    5. None of these
Correct Option: C

Singleton pattern involves a single class which is responsible to create an object while making sure that only one object gets created. This class provides a way to access the only object which can be accessed directly without need to instantiate another object of the same class.



Your comments will be displayed only after manual approval.