Yes, rotten apples are considered matter. They occupy space and have mass.
Throw them away that is what you can do with them!
An apple becomes rotten when you bite it or cut it or just leave it in the sun, the apple starts to rot and then decompose.
because of oxygen
They didn't make you puke before you ate them???