Putting synchronized keyword in front of method declaration results in an instance-wide mutual exclusion. It's best to limit the scope whenever possible.