The Artima Developer Community
Sponsored Link

Java Buzz Forum
Java 7: New Feature - automatically close Files and resources in try-catch-finally

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Vineet Manohar

Posts: 114
Nickname: vineetmano
Registered: Mar, 2009

Vineet Manohar is an entrepreneur / Senior Java Developer with 12 years of industry experience
Java 7: New Feature - automatically close Files and resources in try-catch-finally Posted: Mar 23, 2011 3:46 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Vineet Manohar.
Original Post: Java 7: New Feature - automatically close Files and resources in try-catch-finally
Feed Title: Vineet Manohar's blog
Feed URL: http://www.vineetmanohar.com/category/java/feed/
Feed Description: Cutting edge Java articles, Web 2.0 and other Tech topics
Latest Java Buzz Posts
Latest Java Buzz Posts by Vineet Manohar
Latest Posts From Vineet Manohar's blog

Advertisement
Try with resources is a new feature in Java 7 which lets us write more elegant code by automatically closing resources like FileInputStream at the end of the try-block. Related posts:
  1. New Java 7 Feature: String in Switch support
  2. 2 ways to convert Java Map to String
  3. How to configure multiple page.xml files in Seam 2.2

Read: Java 7: New Feature - automatically close Files and resources in try-catch-finally

Topic: Twitter API and Me Previous Topic   Next Topic Topic: Save money from Agile Development

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use