Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Lazy Initialization in Java - Surprisingly Tricky
(opens in new tab)
(antrix.net)
6 points
antrix
13y ago
2 comments
Save
Share
2 comments
2 comments · 1 top-level
top
newest
oldest
bgrainger
13y ago
· 1 in thread
The list of proposed solutions is missing the single-element enum type approach:
http://stackoverflow.com/a/71399
antrix
OP
13y ago
(author here) Two points, (a) I was describing general lazy initialization, not just Singletons and (b)I believe the Enum approach is not lazy.
j
/
k
navigate · click thread line to collapse