This statement is false. When two substances of the same mass have different specific heats, different amounts of energy are required to heat them to the same temperature.
The specific heat of a substance is the amount of heat energy required to raise the temperature of a unit mass of that substance by a certain amount. Different substances have different specific heat values, which means they require different amounts of energy to achieve the same temperature change.
The equation that relates heat energy, mass, specific heat, and temperature change is:
Q = m * c * ΔT
Where: Q is the heat energy, m is the mass of the substance, c is the specific heat, and ΔT is the change in temperature.
Since the specific heat (c) is different for each substance, the amount of energy required (Q) will vary even if the mass (m) and the temperature change (ΔT) are the same.