Density is not that important. It's the distribution. Japan for example has most of the population concentrated close to coast.
Italy has a few major population centers south of dome but sparsely populated otherwise.
And so on...