1
Pins

Lazy Initialization, Singleton Pattern and Double Checked locking

published 628 days, 7 hours, 47 minutes ago posted by anishaanisha 633 days, 7 hours, 33 minutes ago
Monday, July 30, 2012 12:15:00 PM GMT Wednesday, July 25, 2012 12:28:52 PM GMT

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 using such approaches in a concurrent scenario.

category: Java EE | clicked: 4 | | source: www.javabeat.net | show counter code
tags: double checked locking, Java, lazy initialization, Singleton


To post comments using your Facebook,Twitter, Gmail etc credentials in the Discus comments section. Or use your Javapins credentials at the end of the page.
To post your comment as a Javapins user please login or signup to Javapins database.