Diatomic Oxygen O2 has 2s² 2p^4 Orbital valence configuration.
Therefore the bond order of oxygen = 1/2 (number of bonding electrons - number of non-bonding electrons)
= 1/2 (6 - 2 ) = 2
Bond order 2 means there is sufficiently stong bond affinity between 2 atoms of oxygen