62,612
社区成员
发帖
与我相关
我的任务
分享
public class Test
{
public static void main(String[] args)
{
System.out.println(tryTest());
}
private static int tryTest()
{
int i = 0;
try
{
i = 1;
return i; //1处
}
catch (Exception e)
{
i = 2;
return i;
}
finally
{
i = 3;
}
}
}
public class Test
{
public static void main(String[] args)
{
System.out.println(tryTest());
}
private static int tryTest()
{
int i = 0;
try
{
i = 1;
return i+0; //2处
}
catch (Exception e)
{
i = 2;
return i;
}
finally
{
i = 3;
}
}
}
public synchronized String toString() {
return new String(value, 0, count);
}