Because air resistance is negligible for a rock tossed in the air, the acceleration is $9.8ms^{-2}$ downward at both instants. The acceleration due to gravity is constant near Earth's surface, and the rock experiences that acceleration at all instants during its round trip.