|
|||||||||
|
Submit Links |
Latest Links
| Login
(want to submit links for DLinks? send a mail to krishnas@javabeat.net)
What is the better approach to implement Singleton pattern?submited by krishnas on Thu Mar 27th, 2008 Singleton is one of the frequently used and easily understandable design pattern. Most of the tutorials and books give example of making the constructor as private and exposing a static method which will provide single instance. The common example they use is Runtime class of JRE.Topic: java |
|||||||||
|
|||||||||