f is the frequency of a particle. In the theory of relativity, energy equals m*c*c. In the theory of Photoelectric effect, energy equals h*f If the particle keeps still. m is the rest mass of the particle. In this case the frequency is 0 and h*f is 0 However m*c*c isn't 0. It's a little strange.