RAM is the primary memory of a computer that can access any memory cell directly. The two main types are DRAM and SRAM. DRAM (dynamic RAM) is commonly used in computers and needs to be refreshed to retain data. It stores each bit in a storage cell with a capacitor and transistor. ROM is a permanent, non-volatile memory that usually cannot be written to by the user. The main types are PROM, EPROM, EEPROM and flash memory.