r/JavaProgramming • u/captainhot07 • 2d 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 .
4
3
u/Vijjwal_xD 2d 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 2d 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
2
u/SplooshWater 2d 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 2d ago
4th year yet asking which language is better for dsa
Man do something no one really cares
3
1
u/Horny-Corn-7759 2d 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
1
1
1
u/Early_Quality_1796 1d ago
Consistency matters more than the programming language. Choose one and keep practicing!
1
u/Least_Ad_1795 1d 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
1
1
6
u/8dot30662386292pow2 2d ago
No. DSA has nothing to do with a programming language.