Hello Dave,
Well, both seem correct but I would rather say "tomorrow I will have an exam” just because you didn’t plan it, so you probably have to do the exam, you didn’t plan it personally and freely.
So, “going to” means you have planed something,
and “will” is just something that will happen but you didn’t plan it.
(It is just my opinion, hope it helps you).