1、
class Demo
{
....省略...
try
{
showExce();
System.out.println("A");
}
....省略....
}
public static void showExce() throws Exception
{
throw new Exception();
}
2、
class Demo
{
....省略...
try
{
throw new Exception();
System.out.println("A");
}
....省略....
}
问题:为甚么1当中是对的。2会是错的呢?!感觉都一样啊
|
|