A machine gun refers to any gun that can continuously fire bullets while holding the trigger. They are often used on airplanes and battleships because of this. Many machine guns are capable of firing several hundred bullets per minute.
Machine guns are designed to destroy a enemy as fast as possible. They are often very heavy, so many people prefer other guns.