You had been taught or had read somewhere that Jupiter orbits sun. But that isn't totally true, do you want to know that where do the Jupiter orbit? Then keep reading this till the end,
Let's see,
Jupiter does not technically orbit the sun - because it's so dauntingly massive. When a small object orbits a big object in space, the less massive one doesn't travel in a perfect circle around the larger one. Rather, both objects orbit a combined center of gravity.
For a puny, fragile planet like Earth, which is 0.000003 the mass of the sun, the center of gravity resides so close to the center of the sun that we don't even notice the slightly off-kilter orbit. It seems as though we circle the star. The same is true of most other objects in the solar system- except Jupiter.
The gas giant is so big that it pulls the center of mass between it and the sun, also known as the barycenter, some 1.07 solar radii from the stars center - which is about 30,000 miles above the sun's surface. Jupiter is about 0.001 as massive than the sun, but it's sizeable enough that both the sun and Jupiter orbit that point in space.
Essentially, that's how Jupiter and the sun move through space together- though the distances and sizes are far different. So the next time you read a kid's book that says that Jupiter circles the sun, you'd be forgiven for trying to rip out that page.
Comment your questions which you want to be answered.