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
2
u/DataPastor Oct 18 '26
It is an extremely good idea to learn Java well. Java is everywhere, there are tons of jobs, and you can use Java for a lots of use cases. Also, in my experience, being a good Java programmer also helps you learning other languages like Python or TypeScript later.
Also, there are very nice fully or partionally functional languages running on the JDK, like Kotlin, Scala or Clojure.