Electromagnet - the strong magnetic field produced inside a solenoid can be used to magnetize a piece of magnetic material like soft iron when placed inside the coil. the magnet so formed is called electromagnet. the magnetic effect remains only till the current is flowing through the solenoid.
Uses of electromagnet
electromagnet is used in electric bells
electromagnet is used in electric motors electromagnet is used in telephone diagrams
electromagnet is used in for sorting scrap metals
Hope it helps u