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. |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: