An inductor stores energy in :ACoreBElectromagnetic fieldCElectrostatic fieldDMagnetic fieldAnswer: D. Magnetic field