Which two types of electromagnetic waves have the shortest wavelengths and highest energy?

Gamma rays and X-rays have the shortest wavelengths and highest energy among all types of electromagnetic waves.