- class Test
- {
- public static void main(String[] args){
- System.out.print(tt());
- }
- public static int tt(){
- int b = 23;
-
-
- try{
-
- System.out.println("t");
- return b=88;
- }
- catch(Exception e){
- System.out.println("error : " + e);
- }
- finally{
- if(b>25){
- System.out.println("b>25 : "+b);
- }
- b = 33;
- System.out.println(b);
- System.out.println("finally");
-
- }
-
- return b;
- }
- }
复制代码 执行结果:
t
b>25 : 88
33
finally
88
请问大婶们这里的执行顺序是怎样的
|
|