For example, we can take Water
In (A) Water has same mass and great volume
In (B) Water has same mass and lower volume
Will there be any change in its density then?