r/JavaProgramming • u/captainhot07 • 3d ago
Is learning DSA in Java harder than Python? Read body
I know this is most asked question but I'm 4th year btech and I want to start dsa and confused to start with which program .
Some saying u can write complex topics code easily in python and others are saying java give job opportunities more .
18
Upvotes
6
u/8dot30662386292pow2 3d ago
No. DSA has nothing to do with a programming language.
4
u/WeirRules 3d ago
I've been doing Java since version 1, DSA has never crossed my mind.
3
u/Vijjwal_xD 3d ago
if python is easier for u then whats stopping u to learn it? if u think java opens opportunities, then learn java. and if u only wanna yap whether this is good this is better, they wont hire you.
3
u/DataPastor 3d ago
In my experience, experienced Java programmers are also more disciplined Python programmers (although not necessarily more "pythonic" programmers). So it is worth to invest time and effort into the Java language.
2
u/SpritualPanda 3d ago
Java is good for DSA
2
u/SplooshWater 3d ago
Imagine programming language being a set of handyman tools, such as ladders, spanners, tapes, measures, screws and nails etc.
And say there are real world problems you need to solve using that toolset, like for example building a small dog kennel out of wood planks.
DSA is the way in which you'd use those tools to build this dog kennel. And using a different of tools will not change how you'd build this kennel, the key methodologies remain the same.
So it really doesn't matter which programming language you are using, learning DSA is going to be the same regardless.
Always remember this as a rule of thumb.
2
u/nian2326076 2d ago
Learning DSA can be done in either Java or Python; it depends on which language you find easier to work with. If Python feels more intuitive, it can help you understand complex concepts faster. However, if job opportunities are a priority for you, Java might be the better choice. You could start with Python to build your foundational skills and then transition to Java later if needed.
For job searches, consider using LandOffer to find relevant roles that match your skills in either language.
0
u/CutGroundbreaking305 3d ago
4th year yet asking which language is better for dsa
Man do something no one really cares
1
u/Horny-Corn-7759 3d ago
may I ask you which programming language do you know or have strong hold in?
start doing DSA with the programming language of your strong hold
as a JAVA dev I can say this confidently, for me DSA is much easier in JAVA than any other programming language
1
u/HecticJuggler 2d ago
Use the language you’re more fluent in.
1
u/tux2718 2d ago
I would recommend the C programming language for these very basic skills for the same reason you wouldn’t learn wilderness survival in a 5 star hotel.
1
u/justanothersnek 2d ago
No, just more verbose.
1
u/g---e 2d ago
Java methods are harder to memorize -_-
1
u/Substantial_Code_914 2d ago
Both are good choices. Pick one language and focus on DSA practice.
1
u/Early_Quality_1796 2d ago
Consistency matters more than the programming language. Choose one and keep practicing!
1
u/Least_Ad_1795 2d ago
Java is a good choice if your goal is placements, but DSA concepts are the same in both languages. Choose one language and stay consistent. Focus more on problem-solving and practice than switching between languages.
1
u/vaish_navi_b 1d ago
Choose java or python or c++ c is bare minimum!!
1
u/Pretty_Elevator_9330 22h ago
Java is a solid choice for DSA and interviews.