The only thing that definitely happens in every such case is: The container becomes heavier.
When an object with lower density is placed in a container with a higher density object, the lower density object will float on top. This is due to the buoyant force, which allows objects less dense than the surrounding fluid to remain at the surface. The principle applies to various examples including cork in water and icebergs in the ocean.
;