·
Given the DivisionTest class:
public class DivisionTest { static int res = 0; static int div(int a, int b) { var r = 0; try { r = a/b; res = res + 1; } catch (ArithmeticException e) { res = res + 2; } finally { res = res + 3; } return r; } static double div(double a, double b) { var r = 0.0; try { r = a/b; res = res + 4; } catch (ArithmeticException e) { res = res + 5; } finally { res = res + 6; } return r; } public static void main(String[] args) { div(0,0); div(0.0,0.0); System.out.println(res); } }
What is the result? Choose one.
A. A runtime exception and no output
B. 9
C. 14
D. 15
E. 16
·ꓷ uoᴉʇdo sᴉ ɹǝʍsuɐ ʇɔǝɹɹoɔ ǝɥꓕ