In general, the contents of RAM are erased when the power to the computer is turned off, but ROM retains its data indefinitely