public class Test01 { public static void main(String[] args) { System.out.println(show()); } public static int show(){ int i = 1; try { return i; }finally { i = 3; } } }
try关键字的返回值
最新推荐文章于 2022-03-27 07:03:55 发布
public class Test01 { public static void main(String[] args) { System.out.println(show()); } public static int show(){ int i = 1; try { return i; }finally { i = 3; } } }