Einstein equation $E=mc^2$ where $E$ is energy, $m$ mass, and $c$ the speed of light in vacuum. So does it mean objects without any mass does not posses energy for eg lights photons does not have mass but how can they posses energy
The equation, properly understood is:
$$E = \gamma m c^2 $$
where $m$ is the invariant mass (or the deprecated "rest mass").
Now, for a photon, the invariant mass is zero. But this does not imply that $E$ is zero since the Lorentz factor $\gamma \rightarrow \infty$ as the speed goes to c. Thus, this equation has an indeterminate form for a massless particle with speed c
However, from the relativistic energy momentum relation,
$$E^2 = (pc)^2 + (mc^2)^2 $$
we see that, for a massless particle,
$$E = pc$$
Thus, the energy and momentum for a massless particle are proportional.
$E^2 = (mc^2)^2 + (Pc)^2$ Where $P$ is the linear momentum of the particle. Therefore a particle can have Energy even if it does not have mass. In the case of photons, you don't have mass but you have momentum given by Broglie's relation $P=h/\lambda$.
The equation E = mc^2 is the conversion, not declaration, it told you that if you convert mass to energy, you will get energy, and if you convert energy to mass, you get mass
Photon is pure energy (it is particle) it can be converted to mass and it will be gone while itself have no mass