All the molecule posses bond order. The bond order varies from one molecule to another. Oxygen is a diatomic molecule. Let us first know what do you mean by bond order.
Bond order
The bond order may be defined as half the difference between the number of electrons in bonding molecular orbitals (Nonbonding) and the number of electrons in the antibonding molecular orbital.
The bond order of O2
The bond order is the number of bonds present between two atoms in a molecule or ion. Various molecular properties can be understood by this concept such as variation in bond length and bond enthalpies.
Where
a = Number of electrons in bonding molecular orbitals.
b = Number of electrons in antibonding molecular orbitals.
Electronic configuration of O2 (Z= 16)
[σ(1s)]2[σ∗(1s)]2[σ(2s)]2[σ∗(2s)]2[σ(1pz)]2[π(2px)]2[π(2py)]2[π∗(2px)]1[π∗(2py)]1a = 10
b = 6
Bond order = 1/2 (10 – 6)
Bond order = 2