Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the synchronized keyword in Java?
Answer: The synchronized keyword is used to control access to critical sections of code by allowing only one thread at a time to execute it.
Is it helpful? Yes No

Most helpful rated by users:

©2026 WithoutBook