i've only done three all nighters and, although i didn't drink any energy drinks, they didn't go well
first one was the night before results day. no work obviously, didn't anticipate sleeping well, there was a good Twitch stream i wanted to watch instead of sleeping. ended up falling asleep an hour before results came out, only woke up because my dad phoned me, went straight back to sleep
second one was for a hackathon. night went fine but fell asleep around 9am, napped for an hour and felt awful for the rest of the day
third one was at uni. didn't have any work due the day after, just didn't feel like sleeping. fell asleep for 2/3 hours at 9am and felt alright for the rest of the day
i don't recommend them but some people can continue well into the next day unscathed. i'd suggest doing a practice run some other time before you try before an exam