Answer:
The jovian planets, however, formed farther from the Sun where ices and rocks were plentiful. The cores accreted rapidly into large clumps of ice and rock. Eventually, they got so large, they captured a large amount of hydrogen and other gasses from the surrounding nebula with their enormous gravity.