Correct Answer: It will print the numbers 1 to 20 sequentially
Explanation:
The updating and output takes place inside synchronized code.
One thread will run to completion printing the numbers 1-10.
The second thread will then run to completion printing the numbers 11-20.
Discussion & Comments