Gamma rays have the highest frequency in the electromagnetic spectrum, ranging from 10^19 Hz and above. They are produced by radioactive decay, nuclear explosions, and cosmic events. The electromagnetic spectrum in order of increasing frequency is: radio waves, microwaves, infrared, visible light, UV, X-rays, and gamma rays.