In H2SO4, the SO4 group has O.N -2. Two H atoms are attached to it! The molecule is neutral. Therefore there must be two positive charges to cancel the the 2 -ve charges. therefore the 2 H atoms will take up one +ve charge each to cancel the -ve charge. The net charge on an atom is called its oxidation number! It is also good to remember that sum of O.N of all atoms in a molecule is 0. In an ion, the sum of O.N. of all atoms is the total charge of ion!
Hope I made u understand, at least a little bit!