Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes asking about lazy initilization in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "asking about lazy initilization in java" Watch "asking about lazy initilization in java" New topic

asking about lazy initilization in java

kumar abhay
Ranch Hand

Joined: Oct 02, 2001
Posts: 53
hi there,
i hope u ppl r doing fine.i wanna know about "lazy or delayed initilization" in java.plz let me know with a demonatration.
thanks in advence
takle care
kumar abhay
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388

lazy instantiation is used to delay the creation of expensive object. expensive objects are objects which take lots of time/resources to create.
the creation of this objects is delayed until the are needed

[ March 07, 2002: Message edited by: karl koch ]
It is sorta covered in the JavaRanch Style Guide.
subject: asking about lazy initilization in java
Similar Threads
Lazy association
WA #1.....word association
SuperClass and SubClass doubt
Another 'Y' game