Halocarbon is a hypernym of haloalkane.
In context|organic chemistry|lang=en terms the difference between halocarbon and haloalkane
is that
halocarbon is (organic chemistry) any compound formally derived from a hydrocarbon by replacing at least one hydrogen atom with a halogen, but especially by replacing all hydrogen atoms with halogen(s) while
haloalkane is (organic chemistry) any alkane in which one or more hydrogen atoms has been replaced by that of a halogen.
As nouns the difference between halocarbon and haloalkane
is that
halocarbon is (organic chemistry) any compound formally derived from a hydrocarbon by replacing at least one hydrogen atom with a halogen, but especially by replacing all hydrogen atoms with halogen(s) while
haloalkane is (organic chemistry) any alkane in which one or more hydrogen atoms has been replaced by that of a halogen.