Both classes have their strengths in AdventureQuest World, so it depends on your playstyle.
A Shaman may be able to quickly take down a Necromancer before it can weaken and heal. On the other hand, a Necromancer can potentially defeat a Shaman by using Deadly Frenzy, then Weaken, and following up with a command attack before the Shaman lands the final blow. In short, each can counter the other, so the "better" class comes down to how you like to play.