Oxidation state of C and H in CH$_4$ are respectively
Show Hint
In hydrocarbons, Hydrogen is always $+1$ because Carbon is more electronegative than Hydrogen.
Consequently, you can quickly find the oxidation state of Carbon by simply taking the negative of the number of Hydrogen atoms attached to it.