Does Data Science use Java or Python?Watch
More about City University
The 1st and 2nd year state that they use Java/C++ but on the website its recommended students learn python and im not sure if the course page is out of date or if the course uses Java C++ AND Python
Is Python preferred over the whole degree or just some specific years?
It entirely depends on what exactly you're aiming to do. Programming is simply a tool to get things done and specific programming languages are chosen to get specific tasks done. For data science the generally preferred tool (programming language) is Python.
In conclusion, you will be using (I hope you're using) the language most appropriate to whatever it is you're trying to learn/achieve in that specific module in that degree.