Gamma rays have the highest energies and shortest wavelengths on the electromagnetic spectrum. They come from free electrons and stripped atomic nuclei accelerated by powerful magnetic fields in exploding stars, colliding neutron stars, and supermassive black holes
hope this helps!:)