Multiple choice

Which of the following is/are the correct statements for the Singleton design pattern in .Net?

  1. We can make Singleton class by making a private constructor of that class.

  2. Static initialization is suitable for multiple threaded Singleton class.

  3. Singleton class is used to save state and storing caches.

  4. All of the above.

  5. Only (1) and (3).

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

All are the correct statements about Singleton class.