Let's say we have an LC oscillating circuit with a switch in the circuit (that doesn't have any resistance), I wanted to understand what will happen if we suddenly open the switch. Since inductor current changes rapidly in the circuit, does it cause sparks in the switch itself or the capacitor can protect it by storing that energy as charge (high amount of charge flows and gets accumulated in the capacitor as the switch is opened) !!