Try-with-resources 사용하기 JDK7에서 생겨난 자원 자동 종료?라고 생각하면 된다. 물론, 다되는 것은 아니고 Autocleable을 구현한 클래스만 사용가능하다. String readDataFromFile(String filePath) { BufferedReader br = null; String data = ""; try { br = new BufferedReader(new FileReader(filePath)); data = br.readLine(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { try { br.close(..