A pineapple will float if it is placed into a liquid that, when displaced by the volume of the pineapple, the displaced liquid weighs more than the pineapple displacing it, causing buoyancy.
Didn't find the answer you were looking for?