You are viewing a single comment's thread. Return to all comments →
That's a bad coding practise. First it is an Eager Initializtion and second you did not perform a Double Checked Locking. See Jason_Yao_NYU's comment.
Seems like cookies are disabled on this browser, please enable them to open this website
Java Singleton Pattern
You are viewing a single comment's thread. Return to all comments →
That's a bad coding practise. First it is an Eager Initializtion and second you did not perform a Double Checked Locking. See Jason_Yao_NYU's comment.