The main memory, commonly known as the RAM, the computer's main memory is a device that holds information. RAM is usually a volatile type of memory, used only for temporary storage.
The secondary storage is a type of memory that can hold data for long periods of time - even when there is no power to the computer.