There are two bonding electrons when two oxygen atoms are double-bonded to each other.
Due to the fact that each oxygen only receives one electron from its nearby hydrogen, oxygen still has an oxidation number of -1. There is no partial charge produced by the link between two identical oxygen atoms since the electrons were also shared equally.
Oxygen has 6 valance electrons. It will share 2 electron to complete its octet and form double bond .
Hence, in calculation of oxidation number of O2 molecule bonding electrons will be 2
To know more about oxidation number
https://brainly.com/question/28197466
#SPJ4