Zeroth law of thermodynamics:-
This law states that when two bodies are in thermal equilibrium with a third body, they are also in thermal equilibrium with each other.
If an object with a higher temperature comes in contact with an object of lower temperature, it will transfer heat to the lower temperature object. The objects will approach the same temperature and in the absence of loss to other objects, they will maintain a single constant temperature. Therefore, thermal equilibrium is attained.
The Thermodynamics Zeroth Law states that if two systems are at the same time in thermal equilibrium with a third system, they are in equilibrium with each other.
If objects A and C are in thermal equilibrium with B, then object A is in thermal equilibrium with object C. Practically this means all three objects are at the same temperature and it forms the basis for comparison of temperatures.