Hacker News new | ask | show | jobs
by jdmichal 3504 days ago
I use them all the time for defining singleton implementations.

    public static final MyInterface SINGLETON = new MyInterface() {
        ...
    }