Consider the following code segment, which uses the int value a. if ((a > 12) || (a < 4)) System.out.println("New value: " + a/3); else System.out.println("New value: " + 2*a); For which, if any, of the following initial values of a will the statement "New value: 4" be printed when the code is executed?
The "/" does ordinary division when applied. So when a = 13 and a = 14, both greater than 12, it found the values 4,33 and 4,66, respectively, and java itself round it to 4.