RAM: Random Access Memory is used to store data and programs which is used by the CPU in real-time.
The memory on RAM can be written, read, and erased n times. It is a hardware element and the data currently in use is stored. It is a type of volatile memory.
Types of RAM :
ROM: Read Only Memory has the prerecorded data. The data in ROM is still present when the computer is off which means ROM is a non-volatile memory.
Types of ROM: