Dear Student,
when we throw an object vrticaly upward direction with some velocity then
here deceleration due to gravity works on ball (as accelaration and velocity
is in opposite direction ) at maximum height velocity will be zero and
and accealration is g ( because now down ward motion will start)
Regard