public class Test00 {
public static void main(String[] args)throws Exception {
System.out.println(test("name"));
}
public static String test(String name)throws Exception
{
try
{
System.out.println("try....");
return name=name+"...try";
}
finally
{
System.out.println("finally....");
return name= name+"...finally";
}
}
}
|
|