I find the first one often confusing
on the contrary Vicky, i find the first one very relaxing specially when u have multi-nested loops (however it is a matter of taste).
Sun uses the first style, and i believe the exam will have the first coding style, however don't be fooled... the exam will contain some style that you have never seen in your life, take the following code for example:
So pay attention while reading such questions.