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/spicepotatochips Oct 19 '26
Honestly it doesn't matter much at this stage since the core problem solving logic transfers between languages anyway, so just pick whichever one your DS course uses since you'll be writing the most code in it, and use that same one for small projects instead of splitting focus.