Answer:The magnetic field around an electromagnet is just the same as the one around a bar magnet. It can, however, be reversed by turning the battery around. Unlike bar magnets, which are permanent magnets, the magnetism of electromagnets can be turned on and off just by closing or opening the switch.