In Electrical, What is the difference between DC capacitors and AC capacitors?

What is the purpose of capacitors in the electrical/electronic Circuit in general?
How about in UPS system (Uninterruptible power supply)?
3 answers 3