Let's find out more about this fabulous King David.
The author distinguishes David's sons based on where they were born.
A few of them are born in Hebron where David ruled for seven years. A whole bunch more are born in Jerusalem (to be fair, David did live there for 33 years). How'd he get so many kids? He also had a whole bunch of wives.
David's most famous son is Solomon who ruled after his father died. And Solomon had a ton of kids, too. And tons of wives. Solomon got around.
The author lists all the kings of the Southern Kingdom of Judah up until the Babylonians took over and put an end to the whole Davidic dynasty.