No, it says nothing about their densities. OF COURSE you can have a piece of iron that's heavier than a piece of gold, or a bottle of Carbon-dioxide that's heavier than a bottle of water. Just play with the size of the samples, and you can cook up a box of feathers that's heavier than a box of rocks.
Densities can only be compared when both samples you're comparing have the SAME MASS.
Answer: Density is a ratio of mass to volume. Density can’t be determined with only one of these measurements. The previous examples show that the density of gold is greater than the density of iron, even though the iron sample has a higher mass.
Explanation: