Which of the following correctly compares UV rays and x-rays?

A) X-rays have the same wavelength as UV rays.
B) UV rays have the same energy as X-rays.
C) X-rays have a higher frequency.
D) UV rays have lower energy.