public class Test { public String Test1() { String str = "aa "; try { str = "bb"; return str; } finally { str = "yy"; System.out.println(str); } } public static void main(String[] args) { Test t = new Test(); System.out.println(t.Test1()); } }
public class Test { public String Test1() { String str = "aa "; try { str = "bb"; return str; } finally { str = "yy"; System.out.println(str); } } public static void main(String[] args) { Test t = new Test(); System.out.println(t.Test1()); } }
发表回复