Java 7 优雅的自动资源管理
[代码] Java7以前的做法Connection connection = null;Statement statement = null;try{ connection = DriverManager.getConnection(“databaseurl”,”username(opt)”,”password(opt)”); statement = connection.createStatemnet(); boolean executionStatus...