标签:equals oid catch int exception null string span except
public class TryCatchTest { public static void main(String[] args) { System.out.println("程序开始"); try { System.out.println("程序 1"); String str=null; str.equals(""); System.out.println("程序 2"); //return; } catch (Exception e) { System.out.println("程序 3"); return; }finally { System.out.println("程序 4"); } System.out.println("程序 5"); } }
finally 里的代码一定会执行
标签:equals oid catch int exception null string span except
原文地址:http://www.cnblogs.com/H-BolinBlog/p/6916827.html