r/learnjava • u/Quirky-Stretch-1404 • 11d ago
Backend engineering
How should I start learning java ? Currently I am doing striver dsa playlist in cpp and 30-40 questions in leetcode. Tell me in detail pls🙏🏻🙏🏻. How to start, what should I learn, which playlist should I follow everything
5
Upvotes
View all comments
1
u/Far-Bullfrog161 9d ago
Since you already do DSA in C++ the jump to Java syntax is small, so don't restart from zero. Spend a week or two on the parts that differ: classes and interfaces, the collections (ArrayList, HashMap, HashSet), generics, exceptions and how strings work. One trick that works well is redoing 20 or so LeetCode problems you've already solved in C++, but in Java. You already know the logic, so you're only learning the language and the standard library. After that build a small console app with a few classes that talk to each other, like an expense tracker that saves to a file, because DSA won't teach you how to structure a program. Then some SQL and JDBC, and only after that Spring Boot with a basic REST API and a real database. For actual material check the pinned resources thread here, the mods keep that one updated.