帮帮忙 跪求 public class test { public String getValue(){ String value =""; try{ value = "test1"; return value; }catch (Exception e){ e.printStackTrace(); } finally{ value= "test2"; } return value; } public static void main (String[] args){ test test = new test(); String a = test.getValue(); System.out.println(a); } }
为什么不是test2 是test1呢 try{ value = "test1"; return value; } 中的return value 什么意思?