A capacitor is charged by a battery. The battery is removed and another identical uncharged capacitor is connected in parallel. The total electrostatic energy of resulting system:
A. increases by a factor of 4
B. decreases by a factor of 2
C. remains the same
D. increases by a factor of 2