Memory refers to computer components that hold digital data and programs. There are several types of memory that differ in speed and volatility. Primary storage like RAM is directly connected to the CPU and is volatile, requiring constant power. Secondary storage like hard disks have greater capacity but are slower and non-volatile. Tertiary storage provides even larger capacity for archiving data. Memory is also characterized as volatile, like RAM, or non-volatile, like ROM.