Methane (CH4 ) is a covalent compound containing covalent bonds. Carbon atom has atomic number 6. Its electronic configuration is 2,4. It has four electrons in its valence shell and needs 4 more electrons to get the stable noble gas configuration. Hydrogen atom has one electron and needs one more electron to get stable electronic configuration of nearest noble bas, helium. Therefore, one atom of carbon shares its four electrons with four atoms of hydrogen to form four covalent bonds.