Top 7 Design Patterns Interview Questions

A software design pattern is a general, reusable solution to a commonly occurring problem within a given context in software design.

1.

Explain Singleton Design Pattern?

2.

Difference between Static Class & Singleton Class?

3.

How does padlock work internally? Can we use any other object for padlock instead of Object?

4.

How would you make a class Singleton when we run our application on multiple instances using Load Balancer?

5.

Can I create a clone of Singleton class by calling its Clone() method?

6.

Explain Factory Pattern?

7.

Explain Abstract Factory Pattern? When should we use it?