Archive | Design Patterns RSS feed for this section

Lazy Initialization, Singleton Pattern and Double Checked locking

July 24, 2012

1 Comment

Lazy Initialization Lazy Initialization is a technique where one postpones the instantiation of a object until its first use. In other words the instance of a class is created when its required to be used for the first time. The idea behind this is to avoid unnecessary instance creation. But there are concerns related to [...]

email

Design Patterns Interview Questions

February 13, 2009

4 Comments

1) What is a software design pattern? A design pattern is a solution to a general software problem within a particular context. Context : A recurring set of situations where the pattern applies. Problem : A system of forces (goals and constraints) that occur repeatedly in this context. Solution : A description of communicating objects [...]