1. 14-year-old advanced placement students and college students who commit crimes shall not bear criminal responsibility.
2. If you are a college student with the age of 14-16, you will not bear criminal responsibility except for 8 kinds of crimes.
3. If you are a college student over 16 years old and suffer from intermittent mental illness (please don't get angry, as stipulated by law), you will not bear criminal responsibility if you commit a crime during the period when you can't control your behavior.
As for imprisonment, this is a popular saying. There are several kinds of punishments in China: first, the principal punishments: public surveillance, criminal detention, fixed-term imprisonment, life imprisonment and death penalty; Second, additional punishments: fines, confiscation of property, deprivation of political rights, etc.
The imprisonment you mentioned should belong to one of the main punishments: criminal detention, fixed-term imprisonment, life imprisonment, and imprisonment for less than three years. If the conditions for probation are met, probation can also be applied. So yaoi can't simply answer whether you are in prison or not.
However, no matter what kind of situation you are in, obeying the national laws is a basic code of conduct for college students. Never try to break the law and lead to consequences.
Wish you a wonderful life!