Question: What keyword is added to a method declaration to ensure that two threads do not simultaneously execute it on the same object instance?
- native
- volatile
- synchronized
- lock
Answer: The correct answer of the above question is Option C:synchronized