r/JavaProgramming • • 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 .

17 Upvotes

20 comments sorted by

6

u/8dot30662386292pow2 2d ago

No. DSA has nothing to do with a programming language.

4

u/WeirRules 2d ago

I've been doing Java since version 1, DSA has never crossed my mind.

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

u/SpritualPanda 2d ago

Java is good for DSA

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

u/captainhot07 2d ago

🥲 I did not get the proper guidance and I had different plans

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

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 1d ago

Java methods are harder to memorize -_-

1

u/Substantial_Code_914 1d ago

Both are good choices. Pick one language and focus on DSA practice.

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

u/vaish_navi_b 5h ago

Choose java or python or c++ c is bare minimum!!

1

u/Several_Emotion_6198 2h ago

Yes see namaste dsa u start loving dsa

1

u/Pretty_Elevator_9330 1h ago

Java is a solid choice for DSA and interviews.