And given these two fragments:
I. synchronized void move(long id) {
II. void move(long id) {
The answer is C and E:
C. With fragments I, the output could be 4 2 4 2
E. With fragment II, the output could be 2 4 2 4
Hi everyone
I am having tough time in understanding the above output. I want to know how do we get these id's : 4 2 4 2 and 2 4 2 4
I got this code from K & B
SCJP 6 Studyguide, chapter 9, self
test questions, question 17
I wil real appreciate your assistance.