Question: why will the sun explode?
Answer: For about a billion years, the sun will burn as a red giant. Then, the hydrogen in that outer core will deplete, leaving an abundance of helium. That element will then fuse into heavier elements, like oxygen and carbon, in reactions that don't emit as much energy.