Both of these are correct, it depends on the context.
If you are speaking about apples in general we don't use the article "the" - "I eat apples". This means I am speaking about what I usually eat apples.
If you are speaking about specific apples (those apples there, on the table), or apples that have already been mentioned.- "I eat the apples".