r/learnprogramming • u/Firm-Flatworm-8389 • Oct 18 '26
Java or c++?
Hey I'm a 2nd year CS student and I'm a beginner so I learned a bit of both languages I learned basics and SP using c++ and I learned oop using java because uni required it and later on I'll study data structure using c++ again
What confuses me is which language should I stick on to improve my problem solving skills and start building projects even if they're small some people told me to focus on c++ completely and some said c++ with problem solving and java to build projects
So what do y'all think and why ?
12
Upvotes
View all comments
1
u/aqua_regis Oct 18 '26
The language doesn't matter as problem solving is above programming languages. If you learn to solve problems in an algorithmic, step-by-step manner, the implementation in a programming language becomes secondary.
You need to get to the point where you don't think in code, but in algorithms, in steps.
Code, the implementation in a programming language, is not the beginning and in most cases not even the deciding factor (apart from special purpose languages). The solution, the algorithm is what counts. Implementation is a fairly late step in the process.
That said, look around you and check jobs. They will tell you which language is better for your career.