TestBalance.java demonstrates the syntax differences between making a method synchronized and making a block synchronized. Remember that locks apply to objects, not classes or methods.