看老师视频自学java基础中,没catch,try还有finally{:3_48:}
try {
fis = new FileInputStream("xxx.txt");
fos = new FileOutputStream("yyy.txt");
int b;
while((b = fis.read()) != -1) {
fos.write(b);
}
}finally {
try{
if(fis != null)
fis.close();
}finally {
if(fos != null)
fos.close();
}
}
|
|