1
Pins

Whats new in Java 7 - try-with-resource construct in Project Coin

posted by anishaanisha 632 days, 12 hours, 22 minutes ago
Wednesday, July 25, 2012 1:28:19 PM GMT

In our previous post we looked at different features added as part of Project Coin, in this post we will look at another language construct added as part of Java 7 and Project Coin in particular. It is the try-with-resource construct also called as Automatic Resource Management. Before getting into the details of the construct, let me show you some basic code which I would be using through out this example. Lets create a class called Resource which implements Closeable interface and its a dummy resource...

category: Java EE | clicked: 0 | | source: www.javabeat.net | show counter code
tags: Java 7, project coin, try with resource


To post comments using your Facebook,Twitter, Gmail etc credentials in the Discus comments section. Or use your Javapins credentials at the end of the page.
To post your comment as a Javapins user please login or signup to Javapins database.