Mass
The mass of an object is the amount of matter in it.
It is measured in kilograms (kg) or grams (g). It is measured using an electronic balance
Density
The density of a substance is the mass of one cubic cm of it. The amount of mass in a certain volume of a substance.
Density is measured in grams per cubic centimetre or kilogram per cubic metre (g/cm3 or kg/m3)
Density=mass/volume.