Which of the following statements is true of both infrared radiation and ultraviolet radiation traveling in a vacuum?
A. They have the same energy
B. They have the same frequency
C. They travel at the same speed
D. They have the same wavelength