jdk1.7新特性try(){}

最近在某群中看到有位朋友发了段代码java public void xxx(){ try(InputStream fis = new FileInputStream(source)){ byte[] buf = new byte[1024]; // 省略若干代码........ } catch(BussineExpection e) thro
相关文章
相关标签/搜索