首页 > 代码库 > Java 语法 索引 ----- 异常

Java 语法 索引 ----- 异常

import java.io.*;// ...FileReader in = null;try {     in = new FileReader("Missing.file");}catch(FileNotFoundException e) {     System.out.print(e.getMessage());}finally {    if (in != null) {        try { in.close(); }        catch(IOException e) {}    }}

 

 

参考文献: Java Quick Syntax Reference by Mikael Olsson