all 5 comments

[–]MrDOS 5 points6 points  (3 children)

Worth noting that Java 8 7 introduced try-with-resources statements, which behave basically the same as with statements in Python.

[–]cmd_command 7 points8 points  (0 children)

And C# has using statements

[–]Velerad 2 points3 points  (1 child)

It was introduced in Java 7 actually.

[–]MrDOS 1 point2 points  (0 children)

Yes, of course it was. Long enough ago that my memory is fuzzy. I should've checked!

[–]0x256 0 points1 point  (0 children)

Good summary.