标题: 一道关于try....catch的题 [打印本页] 作者: user_lqb 时间: 2016-3-30 11:26 标题: 一道关于try....catch的题 给定以下JAVA代码,这段代码运行后输出的结果是()
public class Test
{
public static int aMethod(int i)throws Exception
{
try{
return i / 10;
}
catch (Exception ex)
{
throw new Exception("exception in a Method");
} finally{
System.out.printf("finally");
}
}