Question 471
What is printed?
int a = 100;
a = a / 3;
a = a / 3;
a = a * 3 * 3;
System.out.println(a);Main Solution
Correct: A. 100/3 = 33 (int division). 33/3 = 11. 11×3×3 = 99. The truncation from the first division loses 1.
Teacher Explanation
Education Coach Advice
Traps
100/3 = 33 (not 33.33), causing permanent precision loss.Answer images

