When an object is thrown into the air, relate it's mechanical energy to kinetic and gravitational energy.

Mechanical energy is the sum of (gravitational) potential energy and kinetic energy. If there is no friction, the mechanical energy is constant.