Java Needs Method Declarations
I was typing out a graphics-based Java program today from a book (I’m still learning the language). But when I compiled and ran the program, all was not well. So after about 10 minutes of examining the code and populating the methods with System.out.println() statements, I discovered that paintComponent() wasn’t getting called. Why? Because there was a typo in the method signature. I know this was my fault, but if Java required all methods to have a declaration, the compiler would have issued an error message and this wouldn’t have happened.
May 12th, 2006 at 8:56 am
Teh duke pwnd j00!!1
The Duke is the Java mascot.
May 12th, 2006 at 10:39 am
It’s a good language, but it just has some problems.