As far as I know (but I am a beginner!), for many exercises, both with body weight and with weights, it is recommended not too fully lock limbs when performing reps. Examples are push ups pull ups, shoulder presses... I suppose this is to protect the joint - against what exactly?
On the other hand, it seems to me that some gymnastic movement, for example handstands, are to be performed with fully locked limbs, and the load is considerable.
So, I would like to understand when is it bad to lock limbs and when it is not. Is the point that it is wrong doing it when you are bending and extending multiple times, like in push ups, but it is fine when holding, like in handstands, or is it something else?