这个程序的结果?
class Demo
{
public static viod func()
{
try
{
throw new Exception;
}
finally
{
System.out.println("B");
}
}
public static viod main(String [] args)
{
try
{
func();
System.out.println("A");//这句话有什么用,什么时候能执行?还是一直执行不了?
}
catch(Exception e )
{
System.out.println("C");
}
System.out.println("D");
}
} |
|