Example to prove that two bodies having same quantity of heat may differ in their temperatures.
Two bodies One Small rod and one relatively larger both having 1000 J of heat energy .
The total sum of heat energy in both the rod is same but the average sum of that energy of each molecule cannot be same since there are unequal number of molecules in both cases.
Hence in this case the total internal energy i.e heat energy issame but the temperature of both rod varies.
Hence it is not necessary to say that two body having same internal heat energy may have same temperature but ifboth the bodies were of same size and nature they will have same heat energy and temperature