Answer:
No, it is not necessary for them to have same mass.
Explanation:
Let both bodies have a density d1 and d2 respectively.
Since their volumes are equal V1 = V2
we know that, https://tex.z-dn.net/?f=%5Cfrac%7Bmass%7D%7Bvolume%7D
Hence, d1 = and d2 =
Taking the ratio of densities,we get
This implies that unless the bodies have same densities, the mass of the two bodies will not be same.