To boil is to heat something in water.  To fry is to heat something is oil or grease.