[The sun] is hot because its enormous weight – about a billion billion billion tons – creates vast gravity, putting its core under colossal pressure.
But, isn't it hot because the confinement permits nuclear fusion? Just sitting there and having gravity is totally related to being hot or not; it's not like you can create energy out of nothing. If the sun were made of bananas, wouldn't it just become a very compact, cold sphere of crushed bananas?