// error, no synchronization on method public static MySingleton getInstance() { if (fInstance==null) { fInstance = new MySingleton(); } return fInstance; }