when it reaches the maximum height, all the energy has now been converted into potential energy.when a ball is thrown straight upto into the air,all its initial kinetic energy converted into gravitational potential energy when it reaches its maximum height