acb: (Default)
[personal profile] acb
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#.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

September 2015

S M T W T F S
  12345
6 789101112
13141516171819
20212223242526
27282930   

Most Popular Tags

Active Entries

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 29th, 2026 08:07 pm
Powered by Dreamwidth Studios