In case of O – F bond is HOF, fluorine is most electronegative element. So its oxidation number is -1. Thereby oxidation number of O is +1. Similarly in case of O – H bond is HOF. O is highly electronegative than H. So its oxidation number is -1 and oxidation number of H is +1. So, Net oxidation of oxygen is – 1 + 1 = 0.
