Comment on Lazy Initialization in Java - Surprisingly TrickyComments−bgrainger14yThe list of proposed solutions is missing the single-element enum type approach: http://stackoverflow.com/a/71399−antrixOP14y(author here) Two points, (a) I was describing general lazy initialization, not just Singletons and (b)I believe the Enum approach is not lazy.
Comments
The list of proposed solutions is missing the single-element enum type approach: http://stackoverflow.com/a/71399
(author here) Two points, (a) I was describing general lazy initialization, not just Singletons and (b)I believe the Enum approach is not lazy.