3 ms·
There aren't any "corner cases" or "gotchas" in these examples. I even fed the examples to javac to confirm my answers. Just to see if something changes, I then
by gcv 17y ago
There aren't any "corner cases" or "gotchas" in these examples. I even fed the examples to javac to confirm my answers. Just to see if something changes, I then translated the examples to Python, and found that Python does exactly the same thing as Java. It's really, really simple stuff, and anyone who ever wrote a "finally" clause to clean up a file handle should understand it.
So the author's assertion, that most people in his audience had no idea what that code does, really just shows that his audience consisted of idiots.
- lucifer 17y agoI did the same (for Java). No surprises. But this did surprise me: try { throw new Exception ("exception"); } finally { throw new Exception ("finally"); }
- manus_eiffel 17y agoThe audience was mostly full of professors and PhD students, I would not call them idiots.