fruit flies lay their eggs near the surface of fermenting foods or other moist, organic materials. upon emerging, the tiny larvae continue to feed near the surface of the fermenting mass.