Bro, all that depends on the chain length of that hydro-carbon.
Methane has only one carbon atom where as octane has 8 carbon.As the number of carbon atoms increase the chain length increases.So when the chain length increases the intermolecular attractions between molecules increases so the energy requires to break that force attractions become high.Because of that the larger molecular chain of hydrocarbon (octane) has a higher boiling point than the small chained methane. JUST always remember that when ever the size of the molecule increases the boiling point increases in terms of energy requires to break the attractions.They break molecular forces but not atomic bonds!!
Good luck!!