The behavior of EM radiation and its interaction with matter depends on its frequency, and changes qualitatively as the frequency changes . Lower frequencies have longer wavelengths, and higher frequencies have shorter wavelengths, and are associated with photons of higher energy.