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.

2 Responses to “Java Needs Method Declarations”

  1. Joseph Says:

    Teh duke pwnd j00!!1

    The Duke is the Java mascot. :P

  2. Eamon Says:

    It’s a good language, but it just has some problems. :P

Leave a Reply