What does ‘Cram’ mean?

To study a lot before an exam. Eg. “Sorry I can’t go out. I have to cram tonight.”