MCQs > IT & Programming > Java > What does the synchronized keyword on a method do?

Java MCQs

What does the synchronized keyword on a method do?

Answer

Correct Answer: Uses the object's intrinsic lock to prevent two threads from accessing the method simultaneously.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it