Aircraft carrier (or a concrete canoe) float when the density of the material used to build it is greater than water, the main reason behind this is surface area of these material replacing the water under it, which create uplift force by water and help then to remain float.