Molarity is defined as the ratio no. Of moles of solute to the volume of solution in litres.
Molality is defined as the no. Of moles of solute in 1 Kg of solvent.
On changing temp.molarity changes as volume changes but molality remains unaffected as mass of solvent remains unchanged on changing temp.