标签:cat sys string ati int system nal ring rgs
package we;
public class SystemExitAndFinally {
public static void main(String[] args)
{
try{
System.out.println("in main");
throw new Exception("Exception is thrown in main");
//System.exit(0);
}
catch(Exception e)
{
System.out.println(e.getMessage());
System.exit(0);
}
finally
{
System.out.println("in finally");
}
}
}
不一定执行标签:cat sys string ati int system nal ring rgs
原文地址:https://www.cnblogs.com/yyl141/p/11789323.html