Question: What keyword is added to a method declaration to ensure that two threads do not simultaneously execute it on the same object instance?

  1. native
  2. volatile
  3. synchronized
  4. lock

Answer: The correct answer of the above question is Option C:synchronized