The correct option is D Capacitor
All these devices except the capacitor use some other form of energy to convert it into electrical potential energy.
An electric Generator converts mechanical energy into electric potential energy.
A battery converts chemical energy into electric potential energy.
However, a capacitor is more like a spring which only stores electrical energy.