Difference between volatile memory and non-volatile memory?

Non-volatile memory, nonvolatile memory, NVM or non-volatile storage, is computer memory that can retain the stored information even when not powered. Examples of non-volatile memory include read-only memory, flash memory, most types of magnetic computer storage devices (e.g. hard disks, floppy disk drives, and magnetic tape), optical disc drives, and early computer storage methods such as paper tape and punch cards.
Non-volatile memory is typically used for the task of secondary storage, or long-term persistent storage. The most widely used form of primary storage today is a volatile form of random access memory (RAM), meaning that when the computer is shut down, anything contained in RAM is lost. Unfortunately, most forms of non-volatile memory have limitations that make them unsuitable for use as primary storage. Typically, non-volatile memory either costs more or performs worse than volatile random access memory.
'''Volatile memory''', also known as '''volatile storage or primary storage device''', is [[computer memory]] that requires power to maintain the stored information, unlike [[non-volatile memory]] which does not require a maintained power supply.
Most forms of modern [[random access memory]] are volatile storage, including [[dynamic random access memory]] and [[static random access memory]]. [[Content addressable memory]] and [[dual-ported RAM]] are usually implemented using volatile storage. Early volatile storage technologies include [[delay line memory]] and [[Williams tube]].


RAM=Volatile memory
ROM=NON-Volatile memory