Neal Gafter To Join Microsoft
(Via Twitter.)
Neal Gafter: Joined the JavaPosse last night for a new minutes during their recording session, discussing my new employer... Microsoft.
Danny Lagrouw: @gafter huh? Microsoft? But c# already has closures!
Neal Gafter: @danny_l Doh!
But, but, but,...
Friday Java Quiz: Enhanced for Loop
Q: Will the following program compile? Run without exceptions? If so, what will it print?
public class Foo {
public static void main(String[] args) {
String[][] sss = new String[2][];
int c = 0;
for (String[] ss: sss) {
ss = new String[3];
for (String s: ss) {
s = "Slot # " + c++;
}
}
for (String[] ss: sss) {
for (String s: ss) {
System.out.println(s);
}
}
}
}
Strict rules this week: you must not actually compile the program before answering the questions.
James Gosling: It Really Should Be JDK 7
Code To Joy's blogging about a James Gosling quote reminded me of another recent James Gosling quote that I've meant to blog but haven't.
In an appearance on This Ain't Your Dad's Java, James Gosling is heard saying:
James Gosling on 6u10 (at 5:00 minutes): And 6 update 10 is kind of a challenge because It's not a normal update. It is a normal update in that from an API point of view, you won't see very much. But under the sheets, it really should be JDK 7.
So I'm not alone in harboring that thought.