Multiple choice

What are the disadvantages of using Singleton Pattern in .Net?

  1. Singleton pattern reduces the potential for parallelism within a program.

  2. Using this pattern, the unit testing is more difficult.

  3. Singleton can be lazy loaded.

  4. Both (1) and(2).

  5. None of the above.

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

These are the disadvantages of using Singleton Pattern in .Net.