Answer:
Several billion years after its life starts, a star will die. How the star dies, however, depends on what type of star it is. Stars Like the Sun. When the core runs out of hydrogen fuel, it will contract under the weight of gravity. However, some hydrogen fusion will occur in the upper layers. As the core contracts, it heats up.