Believe it or not, that's actually a very efficient way to train the abs. Not for muscular development but for pure solid hardness. Me and my stepbrother used to do that and then punch eachother in the abs as hard as we could and we'd be able to handle it after some experience.