Can any one tell me the advantage of synchronized method over synchronized block with an example?
With synchronized blocks, you can have multiple synchronizers, so that multiple simultaneous but non-conflicting things can go on at the same time.