Questions & Answers about Na džemu ima pene, ali nema koštica.
Because after na when you mean a fixed location, Serbian uses the locative case. The base noun is džem (jam), and its locative singular form is džemu.
So:
- džem = jam
- na džemu = on the jam
If there were motion onto something instead of location on something, Serbian would use a different case.
Na means on, while u means in.
Here, pena means foam, and foam typically sits on the surface of jam, so na džemu is the natural choice: on the jam.
If you wanted to talk about something being mixed inside the jam, u džemu could be more appropriate.