What kind of worms are in wormy apples?
Worms appear in apples after adults of the species lay eggs in the fruit. When hatched, the larvae begin to feed on the fruit, causing it to bruise and decay before falling to the ground. In most cases, apple worms will not vacate the apple until all of the above has occurred. Source: davesgarden.com