JAVA-Exception
package exception; import java.util.Scanner ; import java.io.*; class ExceptionFather{ public String readString() throws FileNotFoundException{ Scanner s = new Scanner (new File("input.txt")); return "ExceptionFather -"+ s.next() ; } } class ExceptionSon extends ExceptionFather{ @Override public String readString() { Scanner s=null; String temp=null; try{ s=new Scanner(new File ("input.txt")); temp="ExceptionSon-"+s.next(); }catch (FileNotFoundException fnfe ){ System.out.println("例外="+fnfe.toString()); }finally { System.out.println("Finally"); } return temp; } } public class TestException{ public static void main(String [] args){ ExceptionSon s=new ExceptionSon(); System.out.println(s.readString()); try{ ExceptionFather f=new ExceptionFather(); System.out.println(f.readString()); }catch(FileNotFoundException fnfe){ fnfe.printStackTrace(); } } }

Family meetings begin with the family team members being introduced to each other. ,