Dear Student
While laboratory preparation of hydrogen , the apparatus must be airtight and no naked flame should be brought close to it, because it is highly inflammable.
It reacts violently with air hence no flame should be brought closer to it.
It is collected from the apparatus using downward displacement with water.
Regards