An oxygen molecule (O2) consists of two oxygen atoms and a double covalent bond.
Within water molecules, two hydrogen atoms and one oxygen atom share electrons to form a covalent bond.