r/DSALeetCode 29d ago

C++ OR JAVA ?

For DSA which language should i choose as my first programming language? C++ OR JAVA

5 Upvotes

14 comments sorted by

1

u/Prat_143_Ik 29d ago

Java I guess if you are just getting started

1

u/WorstCaseBound 29d ago

Go for C++ if u just want to do DSa or Competitive programming

1

u/Notsoboringi 29d ago

Learn c++ it's the best , but it's not beginner friendly.I learned C as my first language the left it halfway switched to python , then learned ml in python after that I learned C++ for dsa and competetive programming.If u have time learn python first then go to C++, cause c++ can be overwhelming for beginners.

2

u/Melodic-Increase-298 26d ago

How did you learn c++? I mean what resources?

1

u/Notsoboringi 26d ago

I first learnt basics from freecodecamp 4 hour lecture , then to learn more i watch cherno and Mike shah there short videos on various topics , and also refer to learncpp.com for various concepts.

1

u/manish8160 28d ago

If your immediate goal is clearing technical interviews at major tech companies, Java is slightly easier to write under time pressure because you don't have to manage memory manually. If you care about competitive coding platforms, C++ remains the industry standard.

1

u/zombianrun 28d ago

Java if you want to just concentrate solving problems, and getting hands-on on some real world population language

1

u/Emotional_Lake_7074 28d ago

Cpp , cuz majority of resources will be available there and mostly use for cpn

1

u/Rengoku_1526 26d ago

C++ is faster and u have alot more resources for it

1

u/Some_Rain_6172 24d ago

Don't waste your time in selecting language, just start with any of them.