RAM and ROM both are the types of computer’s Primary memory Units. It is used to store computer programs and data that the CPU needs in real-time. Random Access Memory data is volatile and is erased once the computer is switched off. ROM has prerecorded data and it is used to boot the computer. RAM data is static and remains in the computer even if the computer is switched off.
Major Differences between RAM and ROM.
|RAM (Random Access Memory)
||ROM (Read Only Memory)
|RAM stands for Random Access Memory.||ROM means Read-only Memory|
|Random Access Memory is expensive when compared to ROM||ROM is cheaper when compared to Random Access Memory.|
|The speed of Random Access Memory is higher when compared to ROM||The speed of Read-only Memory (ROM) is slower when compared to Random Access Memory.|
|Random Access Memory has a higher capacity when compared to ROM||ROM has a lower capacity compared to RAM|
|Random Access Memory. data can be modified, erased, or read.||Data in ROM can only be read, it cannot be modified or erased.|
|The data stored in RAM is used by the Central Processing Unit (CPU) to process current instructions||The data stored in ROM is used to bootstrap the computer.|
|Data stored on Random Access Memory can be accessed by the Central Processing Unit.||If the Central Processing Unit (CPU) needs to access the data on ROM, first the data must be transferred to Random Access Memory, and then the Central Processing Unit (CPU) will be able to access the data.|
|Data of Random Access Memory is very volatile, it will exist as long as there is no interruption in power.||Read-Only Memory (ROM) is not volatile, it is permanent. Data will remain unchanged even when there is a disruption in the power supply.|
These are the main differences between RAM and ROM.