Explain Synchronized statement

Synchronized statement: It is a statement in which an object-lock should be obtained for the target object prior to the body of the statement and can be entered. Employed to enclose a critical section in order to save a race hazard.

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.