acb: (Default)
acb ([personal profile] acb) wrote2003-10-09 06:58 pm

Java (or, how things change while you've been away)

I looked at Java today for the first time since the days of Java 1, AWT and the Blackdown Linux JDK. (Not counting the times when I tutored Java programming courses a year or two ago.) Anonymous inner classes are something I hadn't seen before, and a bit unexpected to someone to whom Java was essentially C++ with training wheels.

         frame.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });


I wonder whether Microsoft ripped this particular syntactic quirk off for C#.