Question: what is the difference between pn junction diode and solar cell?
Answer: There is no difference in a p-n junction and solar cell .. infact solar cell is a type of p-n junction diode .. The only special character of solar cell it that one of the region p or n is made very thin so that the light reaches the depletion region and excite electrons moving them into the conduction band.