
Atomic number of oxygen = 8. Electronic configuration of oxygen = 1s22s22p4.
When two oxygen atoms combines, the molecular orbital energy level diagram is as shown in the figure.
From the diagram, the molecular electronic configuration of oxygen is

Magnetic property: There are two unpaired electrons 
therefore, oxygen molecule is a paramagnetic in nature.