Which of the following for an object should be known to calculate its density?

a) The heat present in it
b) The amount of matter in it
c) The force of gravity acting on it
d) The space between the object and another object

b) The amount of matter in it