What does it mean?

Photons don t have rest mass but they do have energy and hence mass.I don t know , I picked up this statement from somewhere and I was like whatttt? So please answer this question?
2 answers 2