Both DRAM and SRAM store information in binary by using very small electronic components. Both are volatile (need electric current flowing to keep the negative and positive charged components stay that way).