The magnetic field along the axis of a solenoid carrying a high-frequency alternating current changes continuously. Due to the change in the magnetic field, e.m.f (or eddy current) is induced in the metal rod. There will be flow of charge due to the induced e.m.f. The direction of the induced e.m.f changes very frequently due to the high-frequency alternating current in the solenoid. Thus, the rod gets heated up due to the flow of charge in it.