The lines are massively blurred these days.
IT for example, could be anywhere along that line.
Historically though anything you required a degree or similar level of education for tended to be considered a middle class job effectively.
In army terms, sergeant = working class, officer = middle class.