Originally posted by Valentin Crettaz:
When Sun asks a question in the lines of "What does this piece produce when compiled/run?", what compiler does Sun assume for the purposes of the exam?
Just my $.02...
The only assumed compiler is you, the SCJP-aspirant. The JLS specifies an "ideal" compiler which should be taken as the base compiler. That doesn't mean that you have to know the JLS by heart, but that whenever you are in doubt and that the Sun compiler (javac reference implementation) does not produce the expected results (because it does not fully implement the spec), you have to refer to the JLS as the highest authority.