Answer:
In eukaryotes, it occurs in the chloroplast. In prokaryotes it does it in the cytoplasm.
Step-by-step explanation:
Prokaryotes don't have organelles such as the mitochondria and the chloroplast, it just has cell membrane, which its only function is to protect the cell and is unable to generate chemical processes; the DNA, which stores and manages only the genes, which would be affected if exposed to a chemical process like photosynthesis; and the cytoplasm, which stores the materials that the cell needs, where photosynthesis occurs. Eukaryotes have chloroplasts, which absorb the sunlight and combine it with carbon dioxide and water to realize photosynthesis.