According to the kinetic theory of gases, the collisions among the molecules are perfectly elastic, that is, when the collision of the molecules takes place, they bounce off each other with no gain or loss of energy. No repulsive or attractive forces take part at the time of collisions, so energy is conserved.