You won't get any questions like this in the real exam, that's why I wrote at the top of my mock exam that it is much more difficult than the real exam and that
you should not take it until you feel really comfortable. I have created this mock exam for people who would like to delve a little deeper into the details of the
Java language, but it is by no means required to have that level of knowledge to pass the
SCJP exam.
Anyway, the question has to do with operator precedence, the whole evaluation details are provided in the answer when you click on the Submit button at the bottom of the page.
By smartly placing the paranthesis at the right spots we get the following expression
((((4*6)-(3/2))<<(2*5))>>>((1%2)-4))^3
that evaluates to 3 (answer D)
[ March 07, 2003: Message edited by: Valentin Crettaz ]