Java Puzzlers strikes JavaONE
Dr. Joshua Bloch and a representative of Dr. Neal Gafter just finished a fantastic presentation about weird behaviour of apparently simple programs, the tricky behaviour they call Java Puzzlers. They not only showed the puzzles but also the way to fix it in day-by-day life. The contents included this assertions:
Seems easy? Are you not understanding these fragments captured live during a lecture? Ok, I agree it is a bit raw, but I will not try to translate all the reasoning done during the presentation in this small blog entry. My only tip here is that the attendees was invited to answer the puzzles during the presentation and almost none was consensus and for sure none was responded correctly by the majority of people in the room. Very challenger.
Java Puzzlers is a book, and if you are curious about what that means or you want to contact the authors, you can check the book site.