This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I don't see anything wrong with it either, the public static void main(String... args) looks a little funny having the ....
What version of JDK are you using. The exam is for 1.4 and if you are using 1.5 then some example may work when they are not supposed to. I heard on here somewhere to make sure and use the version JDK that you are testing for.
The question should be of some scjp5 exam itself, cause otherwise the var-arg declaration would not have been there & even if the main declaration have been wrong (it is right here) it would not have had produced any compilation error.
Note that with Remko's change (adding toString()) you will not get a compiler error; a NullPointerException will be thrown at runtime because you are trying to call a method on a null reference.
Thanks all. This question is from the John Meyer's mock exam for scjp5. I guess there is some mistake in the question itself because the null option has not even been specified
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.