When stars die, they explode and compress into a:
Ice giant
Rocky dwarf
Red giant
White dwarf
When stars die, they explode and the remaining mass compresses to form a white dwarf.