Explanation:
Thermal energy is the transfer of energy from one object to another as a result of difference in their temperature. The direction of the transfer is from a hot body (higher temperature) to a cold body (lower temperature).
The transfer of this type of energy called heat is measured in joules,