why does mass remains unchanged irrespective to the situation ?
Mass is the amount of matter contained in the body, its an intrinsic property of the body so that is why mass of a body remains the same everywhere in the universe.
For any situation why does the temperature remain constant during the change of state