Answer: The force of gravity
Jupiter and other gas Giants use gravitational force to attract gas to the top, while they still have a solid core,the force in the center keeps the planet together.
I hope this helps & Good Luck <3 !!
7.9m questions
10.5m answers