University should be capitalized if it's used as a proper noun. For ex:
University of Texas
Oxford Univerrsity
The American University in Cairo
but if we use university in general and we don't determine which university, in this case, it's remain lower case. for ex:
When you finish secondary school, you'll join university.