Both are the formula of energy. $\left( E = \frac{1\ }{2\ }CV^{2} = \frac{1}{2}LI^{2} \right)$
Physics Educator & NEET/JEE Specialist
Ph.D. in Physics with 19+ years of teaching experience.