Gamma rays have the shortest wavelength of the EM spectrum . But , they have the most energy out of ANY waves . Gamma rays are produced by ; nuclear weapons , black holes , lightning etc . Gamma rays are produced in space and can be a threat to Earth . But we have the technology to keep us advanced of how big they are , or how small .