In water molecule, oxygen has -2 charge on it while the hydrogen has +1 charge and one atom of oxygen combines with two hydrogen atoms. A hydrogen need only two electrons to complete its octet (one electron is its own the second electron is shared by oxygen) and a oxygen needs 8 electrons (It has six of its own and two are shared by two hydrogen atom).