A piece of glass sinks in water but it floats in mercury because density of glass is more than that of water but less than that of mercury.