Each has its own pros and cons
RAM Explained – Random Access Memory
RAM or Random Access Memory is an incredibly important part of any modern computer. A computer’s CPU (central processing unit) needs data and instructions to perform work. That information needs to be stored somewhere. That “somewhere” is called computer memory.
There are several types of RAM, each with their own advantages and disadvantages. CPUs have a tiny bit of built-in memory, known as the CPU "cache". This memory is incredibly fast and is actually part of the CPU itself. However, it is very expensive and thus cannot be used as the computer's primary memory.
That’s where RAM comes in. RAM comes in the form of silicon computer chips attached to a memory bus. The cache memory on the CPU itself is actually a form of RAM, but when the term is used generically, it refers to these memory chips that sit outside of the CPU.