If the force of gravity pulling the object down is less than the buoyant force, the body floats in the liquid.
If the buoyant force is greater than the force of gravity acting on a ship, it will float.