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,
density = [tex]\frac{mass}{volume}[/tex]
Hence, d1 = [tex]\frac{m1}{V1}[/tex] and d2 = [tex]\frac{m2}{V2}[/tex]
Taking the ratio of densities,we get
[tex]\frac{d1}{d2} = \frac{m1}{m2}[/tex]
This implies that unless the bodies have same densities, the mass of the two bodies will not be same.