The reason why hydrogen can be collected above water is that hydrogen is highly insoluble in water. An enclosed test-tube is normally used to dry the gas and the drying agent is either calcium hydroxide or calcium oxide.
Didn't find the answer you were looking for?