What is the value of (5 + (!2 + 8) * 3 - 3 % 2)/2 in Java?
D.
The logical complement operator (!), which can only be applied to boolean values, is being applied to a numeric value.
The answer is that the expression wouldn't compile or run, making Option D the correct answer.