编辑代码

public class Main 
{
	public static void main(String[] args) 
    {
        try
        {
            int result = divide(4,0);
            System.out.println(result);
        }
        catch (Exception e)
        {
            System.out.println("捕获的异常信息为:"+e.getMessage());
            return;
        }
        finally
        {
            System.out.println("进入finally代码块");
        }
		System.out.println("程序继续执行下去... ");
	}
    public static int divide (int x,int y)
    {
        int result = x / y;
        return result;
    }
}