Originally posted by Rajat Asani:
... For such questions to check the execution flow, I always use a debug mode in ECLIPSE to know which statement has what effect...
IDEs like Eclipse
do a lot of things for you. This is great when your goal is efficiency, but when you're learning details for the
SCJP exam, it can work against you.
You might learn more by inserting your own println statements at various points in the code to display what's happening. This will force you to think about what to output when, and you'll get a much better understanding of the code and execution flow.