I am one of the people who was disappointed that the bitwise operators were dropped from the OCPJP a long time ago.
They are always dropping stuff I already know and adding new stuff that I don't know yet!
Anyway, this question can't be answered without non-short-circuit logical operator knowledge, as sad as it makes me, you should probably purge it when assembling questions for the next book?
Or am I confused and non-short-circuit & ^ | are still in scope for use with booleans? It's one of the things that I know anyway, but just to remember when answering questions here.
EDIT/CORRECTION: the non-short-circuit logical operators are apparently still in scope when applied to boolean values.
The important thing to know about them is that their precedence is right above that of the short-circuit || and &&, and that & is higher precedence than ^ which is higher than |...
So these questions are both still fair game. Annoying, because the only thing I ever forget about them is their precedence, but fine...
Question 45 tb584704.JaSE11PrgISG.be1.39
What are the outputs of the following code snippet? (Choose all that apply.)
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)