Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The "fix" is to define an enum with one member named INSTANCE, if you need a Singleton. -- Effective Java, 2/ed, bu Josh Bloch


Which only works if you need something that doesn't extend existing classes but only interfaces.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: