question should be more precise, is the ball thrown vertically upward or horizontal, in vertical motion maximum kinetic energy will be maximum just after throwing the body, and potential energy will be maximum when the velocity is zero at the maximum height