Java

Posts filed under Java

Singleton Pattern In Java

Filed in JavaTags: , , ,

Singleton pattern is probably one of most popular widely used patterns that I have seen. It’s implemented to create an access restriction to a specific resource like: printer, network, pooling, memory, logging. Here is a simple and correct implementation:

 
 
February 2012
M T W T F S S
« Jan    
 12345
6789101112
13141516171819
20212223242526
272829