By Universal law of gravitation,
F = \(\frac{Gm_1m_2}{r^2}\)
The force acting between two point masses m1 and m2, is independent of the nature of medium between them. Therefore, Gravitational force acting between two masses will remain unaffected when they are dipped in water.