The core of a rocky planet, such as Earth, is significantly different from the Sun's core in several key aspects. The Sun's core is a vast, extremely hot, and dense plasma region primarily composed of hydrogen and helium, reaching temperatures of about 15 million degrees Celsius. In contrast, Earth's core is much smaller, composed mainly of iron and nickel, and exists in solid and liquid states at temperatures around 5,000 to 7,000 degrees Celsius. Additionally, the density of the Sun's core is far greater than that of Earth's core. These fundamental differences highlight the distinct nature of planetary and stellar cores.