---
title: "Discussion on \"Java or C++? Things to consider when starting your DSA journey.\" | Hashnode"
description: "Discussion on \"Java or C++? Things to consider when starting your DSA journey.\". here's why Java is better"
url: "https://hashnode.com/posts/java-or-c-things-to-consider-when-starting-your-dsa-journey/621b3742085330c3f79c25fa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Java or C++? Things to consider when starting your DSA journey.](https://wottersheep.hashnode.dev/java-or-c-things-to-consider-when-starting-your-dsa-journey?utm_source=hashnode&utm_medium=feed)

here's why Java is better

Feb 27, 2022 · 2 min read · wottersheep.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#competitive-programming](https://hashnode.com/tag/competitive-programming)
-   [#cpp](https://hashnode.com/tag/cpp)

## Written by

[Harsh](https://hashnode.com/@wottersheep)

@wottersheep · India

  
[View profile](https://hashnode.com/@wottersheep)

Budding developer in his chaotic 20s.

• 20-year-old CompSci student learning in public•🐢

## Responses 1

Markdown supported · ⌘↵ to post

[Shantanu Tiwari](https://hashnode.com/@shantanu926)

[Feb 28, 2022](https://hashnode.com/posts/java-or-c-things-to-consider-when-starting-your-dsa-journey/621b3742085330c3f79c25fa/comment/621cc49f085330c3f79c5881)

I have learnt C++ so should I learn java for DSA ?

[Harsh](https://hashnode.com/@wottersheep)

[Feb 28, 2022](https://hashnode.com/posts/java-or-c-things-to-consider-when-starting-your-dsa-journey/621b3742085330c3f79c25fa/comment/621cc49f085330c3f79c5881#reply-621cd162c07e2ceec785f0c3)

if you're already well versed with CPP, go for DSA in that language only. The use of pointers and the lack of inbuilt libraries in CPP will actually improve your basics of the topic, that's why I said Java is beginner-friendly but I don't think you'll have any issues. Go for it without any fear, I wish you well.
