From Marcus online exam
The Output is : Compilation and repeated output of 100 agree but one of the comments provided is as follows
Although bContinue does get set to true, the setPrice call is blocked because setPrice and run are both synchronized - (I am new to
java and programming ) but would like to understand where is the slave class referring to the setPrice method , does a system.out.println(iPrice) within the while loop automatically call the setPrice method thereby preventing the method call s.setPrice(200) in the Master class from setting the price???