jdk1.7新特性try(){}

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