noun, noun which may take the genitive case particle 'no'
studying the same subject; attending the same school; studying under the same teacher
Refers to the shared academic context: same field, same institution, or same mentor. Often used in the pattern 同学の (e.g., 同学の士).
彼とは同学の士として長年交流がある。
I have long associated with him as a fellow scholar in the same field.
同学の先輩に研究の助言をもらった。
I received research advice from a senior who studied under the same teacher.
noun
schoolmate; classmate; fellow student
Refers to a person who shares the same school, class, or teacher. Slightly formal; in casual speech 同級生 or クラスメート are more common.
彼は大学時代の同学だ。
He is a fellow student from my university days.
Compound of 同 (same) and 学 (study/learning). The exact historical derivation is uncertain, but the meaning follows directly from the kanji components.