The correct statement is:
UV rays have a higher frequency than infrared rays.
This is because, in the electromagnetic spectrum, shorter wavelengths correspond to higher frequencies and higher energy. UV rays have shorter wavelengths compared to infrared rays, which means they also have higher frequencies and higher energy.