
Tension on string is acting upwards and weight of string is acting downwards. As rock is suspended as well as it is at rest total net force will be zero.
Tension on string is acting upwards and weight of string is acting downwards as the rock is immersed in water and is also in rest, so total net force will be zero.