Self-study exams don't require attending classes, but you have to pass each subject one by one.
Tips
culture
自考 (full name 高等教育自学考试) was created in 1981 as a flexible route to a degree — no campus enrollment, just pass every subject exam on your own. Historically popular with working adults in China.
usage
Distinct from 成考 (成人高考): 自考 has no admissions test and no mandatory classes; you register per subject and the whole degree depends on passing every paper.