adspace
Answer Posted / Deepak Kumar Singh
The Synchronized keyword in Java is used to ensure that only one thread can access a method or a block of code at a given time, preventing multiple threads from accessing and modifying shared resources simultaneously, which could lead to inconsistencies or errors.n
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers