Examples of using "специальностью" in a sentence and their english translations:
Tom majored in psychology.
Tom majored in music education.
I majored in philosophy at my university.