What is the synchronized keyword?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the synchronized keyword?
Rating:
The synchronized keyword is used with a method declaration or a block of code to ensure that at a time only one thread can execute the method or the block of statements. Other threads wanting access to the method are forced to wait until the currently executing thread returns from the method.
Rating:
Was this information helpful?
Other articles
- What is the Map interface?
- SCJP CX310-055 Short Notes: Exam passing tips
- What is the floatValue() method?
- What is the instanceof operator?
- What is an interface?
