Thursday, February 01, 2007

Lazy Loading Example

Alex found a great example of the Initialization on Demand Holder idiom in java.lang.Integer. I've actually looked at this code before but wasn't familiar enough with the pattern to recognize it. Very cool. Thanks, Alex.


Anonymous Tom Hawtin said...

Who will take bets that even "Hello World" lazily creates the holder?

10:33 AM  
Blogger Joseph said...

I wrote up a note discussing the introduction of this code into java.lang.Integer.

10:07 AM  

Post a Comment

Links to this post:

Create a Link

<< Home