What year will the sun become a new nebula
Planetary nebulae are not related to planets at all , but instead are created at the end of a sun - like star 's life as its outer layers expand into space while the star 's core shrinks to become a white dwarf .