Considering you're talking about students studying, the word you're looking for is likely cramming:
[C]ramming (also known as mugging or swotting[...]) is the practice of working intensively to absorb large volumes of informational material in short amounts of time. It is often done by students in preparation for upcoming exams, especially just before they are due. Usually the student's priority is to obtain shallow recall suited to a superficial examination protocol, rather than to internalize the deep structure of the subject matter.
Unlike rote memorization, which can be effective way to study, cramming doesn't create a strong association with what's being memorized, so it's likely to be quickly forgotten after the test.
Note that "mugging" and "swotting" in this sense are not used in the US; they are British English.