RAM is a random access memory; means that the CPU can directly access any address in RAM. RAM is a quickly accessible memory on your computer that also temporarily stores data.
RAM is a volatile memory as it stores data with power. Once the CPU power is turned off, all RAM data is erased.
RAM is the fastest and most expensive memory on a computer. It is a read-write memory of the computer. The processor can read the instructions from RAM and write the result to RAM.
Static and Dynamic RAM
The static RAM is one that requires a constant flow of energy to retain the data within it. It is faster and more expensive than DRAM or dynamic. It is used as a cache memory for the computer.
Memory dynamic RAM must be updated to keep the data it contains. It is slower and cheaper than static RAM.