Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • They are also reducing the amount of PermGen needed and using either Heap or native memory instead, I'm not sure on where it will be stored now. This means by Java 8 you won't need to set two max memory parameters. Commented Jul 13, 2013 at 13:16
  • Isn't try-with-resources the same as a try-finally but with less boilerplate? Commented Jul 14, 2013 at 1:34
  • 1
    I think the idea is that less boilerplate means it's easier to get right. Commented Jul 14, 2013 at 1:50
  • 1
    Less boiler-plate and correct closing smeantics. They discovered that inside the OpenJDK they were doing it manually wrong about 2/3 of the time.... I suspect other high percentages of this in other corpuses of code. Commented Jul 14, 2013 at 13:38