when the sun will explode as a red giant it will turn into a white dwarf which is the remains of the core. Over a long period of time it will turn into a black dwarf. There are no known black dwarfs yet as it takes a long time for this to happen. there are known white dwarfs.