This one keeps coming up. Weight (gravitational effects) comes from energy and momentum in General Relativity. Light has energy and momentum and therefore participates in gravitational effects. Not only does it move through the curved space-time produced by its neighbors, but it also contributes a little to curving spacetime.
So your main question is answered, but now we get to the troublesome word "mass". Does light have mass? That depends on your definition of mass. If you mean the inertial mass m, as in momentum
p=m
v, where
v is the velocity, the answer is yes. That's the same m which is given by E/c
2. Since light has energy and momentum, it obviously has m in this sense of the term.
If you mean
rest mass, also called
invariant mass, the answer is sort of no. That's the m in E
2=
p2c
2+m
2c
4. Since for a single photon E=pc, that m is zero. As soon as you have multiple photons going different directions, their
p's partially or completely cancel even though their E's just add up. In case the
p's exactly cancel, you end up with E=mc
2, i.e. for that batch of light the invariant mass and the inertial mass are the same and not zero. The inertial mass of that batch of light is just the sum of the inertial masses of the parts, but the invariant mass is completely different from the sum of the invariant masses of the parts. Now the gravitational effect of that light can't depend on whether we call it a bunch of separate photons, with total rest mass zero, or call it a big bag of light, with rest mass E/c
2. It's easier then to just think of E as the source of gravity. (
p is too, but that's a more complicated term.)
see
Mike W.
(published on 03/07/2011)