Answer:
No, it is not necessary for them to have same mass.
Step-by-step explanation:
Let both bodies have a density d1 and d2 respectively.
Since their volumes are equal V1 = V2
we know that,
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.