标签:
什么是异常:
中断了正常指令流的事件
class Test
{
public static void main(String args[])
{
System.out.println(1);
try
{
System.out.println(2);
int i=1/0;
System.out.println(3);
}
catch(Exception e)
{
e.printStackTrace();
System.out.println(4);
}
finally
{//here must run
System.out.println(5);
}
}
}
标签:
原文地址:http://www.cnblogs.com/ansen312/p/5837642.html