What is the difference between direct current and alternating current?

In direct current, electrons flow only in one direction, but in alternating current, electrons keep switching their directions. Due to significant advantages of alternating current over direct current, electrical power distribution is nearly all in the form of alternating current today. For many appliances, such as lamps, direction of flow of electrons does not matter; for others, such as computers, the flow needs to be uniform. Hence, a ‘rectifier’ is connected to a computer, which converts the alternating current into direct current.