r/learnjava • u/Kindly_Drama_8735 • Aug 15 '26
Finished C++ during vacation — should I do DSA in C++ or switch to Java for backend?
So my vacations are basically over, and I’ve completed learning C++ during the break. Now I want to start DSA, but I’m a little confused about what direction to take.
I’ve talked to a few people and got completely different advice 😭
Some told me that I should start DSA in C++ and stick with it for now, since I’ve just finished learning C++ and can directly build my problem-solving skills on top of it.
Others told me I should start Java alongside DSA, because I eventually want to learn backend development and Java/Spring Boot is useful for that. Their point was that I might as well start Java now instead of delaying it.
For some context, I’m a 2nd-year CSE student and I already know Python, MySQL, HTML/CSS, C. My goal is to get good at DSA and also start building proper development skills for internships.
So what would you recommend?
I’d especially like to hear from people who have already gone through this transition. Is learning Java right now actually useful, or would it just divide my attention when I should be focusing on DSA?