In physics, heating is transfer of energy, from a hotter body to a colder one, other than by work or transfer of matter. It occurs spontaneously whenever a suitable physical pathway exists between the bodies.