From the Head First Java book:
Unable to understand the part in bold.Quote:
The locks are not per method, they are per object If an object has two synchronized methods, it does not simply mean that you can't have two threads entering the same method. It means you can't have two threads entering any of the synchronized methods
Phew! Looks like the first statement in bold does not go with the second statement. The more I read the part in bold, the more I get confused. An example will help.