query related to latches
It gets stored in the stable state of a gate feed back loop. 

The RS latch is made out of two NAND or NOR gates. There are two feed back wires and each state set and reset correspond to one of them being high with the other being low. 

There are no capacitors.