In many cases it is purely the personality of the dog but don't let things get out of control and there are cases where retraining is a possibility.

What do you think is the most effective way to train a dog?

By smacking him when he's done something wrong I'd ask someone else to train him By rewarding his good behaviour and ignoring his bad behaviour