

As we know that the electrons when in motion,they create electric current.
When electric current in a circuit passes through resistors, resistors resist the flow of electrons.In this process the moving electrons collide with each other and some of their kinetic energy converts into heat energy.
This is the reason of heating effect.
