Guesswork, mostly. We look at the gravity, the apparent size, what kind of color it is, and how much heat it gives off in infrared. Then we make a mathematical model to try to explain all that.
We don’t actually know what Jupiter is made of. We just have some reasonable guesses that match our observations.
Latest Answers