When a bar is subjected to a change of temperature and its deformation is prevented, the stress induced in the bar is
A
Tensile stress
B
Compressive stress
C
Shear stress
D
Thermal stress
Correct Answer: Thermal stress