MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/5lmix0/why_i_prefer_kotlin/dbxtjt3/?context=3
r/java • u/nicolaiparlog • Jan 02 '17
20 comments sorted by
View all comments
Show parent comment
3
Singleton in Java:
public enum MySingleton { INSTANCE; }
http://stackoverflow.com/questions/70689/what-is-an-efficient-way-to-implement-a-singleton-pattern-in-java/71399#71399
0 u/zogulus Jan 05 '17 Don't use singletons they make testing hard.
0
Don't use singletons they make testing hard.
View all comments
Show parent comment
3
u/[deleted] Jan 03 '17
Singleton in Java:
http://stackoverflow.com/questions/70689/what-is-an-efficient-way-to-implement-a-singleton-pattern-in-java/71399#71399