If an object has an average density less than water (less than 1g/cm³), it will float. Anything higher will sink. Ships float because they are full of air which reduces their overall density to less than water.

7