Volatile memory loses its contents when the computer's power is turned off.

Almost all RAM is volatile.

Nonvolatile memory does not lose its contents even when the computer's power is turned off.

ROM, flash memory, and CMOS are examples of nonvolatile memory.