Hi
I am preparing for the
SCJP 6 exam and came across this question from K&B Book
Some of the options are :
I.synchronized void chat(long id)
II. void chat(long id)
1. With fragment I output could be Yo Dude Dude Yo
2. With fragment I output could be Dude Dude Yo Yo
3. With fragment II output could be Yo Dude Dude Yo
The correct answer is 3 which i understood but this statement in the answer confuses me "with either fragment the first output must be Yo".
Why is it not possible to print Dude first then Yo for the Fragment 2?
Please explain.