differentiate between static RAM and dynamic RAM

Static RAM (SRAM) is a type of memory that stores data using a flip-flop circuit, which retains data as long as power is supplied to the circuit. SRAM is faster and more reliable than dynamic RAM (DRAM), but it is also more expensive and consumes more power.

Dynamic RAM (DRAM) is a type of memory that stores data using capacitors, which must be constantly refreshed to retain data. DRAM is slower and less reliable than SRAM, but it is also cheaper and consumes less power. DRAM is typically used for main memory in computers, while SRAM is often used for cache memory.