Multiple choice

Which of the following statements is/are true?

  1. Singleton design pattern is a creation design pattern in java.

  2. There can be only one instance that can be created in a singleton design pattern in java.

  3. We cannot make the subclass of the Singleton class.

  4. All of the above

  5. Only (1) and (2)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Yes, all the above three statements determine the property of the Singleton design pattern in java.