下面代码的执行结果,正确的是: class Test { public static void main(String[] args) { int a, b, c, d, f, result; a = 3; b = 4; c = 3; d = 2; f = 2; System.out.println("main start:"); try { System.out.println("div start 1:"); result = a/(b-c); System.out.println("div result is:"+ result); System.out.println("div start 2:"); result = a/(c-f); System.out.println("div result is:"+ result); return; } catch(Exception e) { System.out.println("divisor should not be zero"); } finally { System.out.println("div over"); } System.out.println("main over"); } }
A.
main start: div start 1: div result is:3 div start 2: divisor should not be zero div over
B.
main start: div start 1: div result is:3 div start 2: div result is:3 div over main over
C.
main start: div start 1: div result is:3 div start 2: divisor should not be zero div over main over
D.
main start: div start 1: div result is:3 div start 2: div result is:3 div over