ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

What is lazy and early loading of Singleton and how will you implement it ?

As there are many ways to implement Singleton like using double checked locking or Singleton class with static final instance initialized during class loading. Former is called lazy loading because Singleton instance is created only when client calls getInstance() method while later is called early loading because Singleton instance is created when class is loaded into memory.

Related Posts Plugin for WordPress, Blogger...
Flag Counter