Tuesday, September 28, 2004

Java Quiz - Win a GMail Invitation

Why does the following program compile:


public class Kumar {

public static void main(String args[]) {

// Hoping this code will not compile ?#$%&**\u000d{
for (int i=0; i<10; i++) {
System.out.println("Hello");
}
} //Additional close braces
}
}


The first one to answer gets a free GMail invitation. Answer to be posted tomorrow if no one get posts the correct answer.