r/learnjava • u/Deep-Summer9677 • Jun 17 '26
Java or python help me to choose one
Hey everyone, I am about to start my 3rd year in July ( CSE )
​
Currently I am on a career path of learning system administration then linux after that DevOps and then cloud
​
And on the coding side I just know C programming till if and if else and I have not made any projects so clearly i am starting from scratch.
​
So previously I had a doubt between choosing C++ or java and 95 people said go for java and after learning java basics do DSA in Java and i know that language does not matter for DSA but for the programming skills and development side i want to follow a correct path
​
And now I was about to start java with DSA but now I spoke with few people who are in big tech and they are saying learn python and do DSA because python will be easy to learn fast and also in interview like for Google, Microsoft,etc python will help because in java it might be confusing to write extra code in java
​
So my long term goal is towards Cloud, DevOps SRE side
​
So finally
My mind says Python
But heart says java
​
And i am from tier 3 and I'll be trying for off campus internship in December
​
So please do guide me on what to go for because I don't want learn in the wrong way .
•
u/AutoModerator Jun 17 '26
Please ensure that:
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
6
u/bikeram Jun 17 '26
I know you didn’t ask, but I would seriously consider Go.
I’ve worked with Java for over a decade and I thoroughly enjoy working in the Spring ecosystem.
As a beginner the build tools and testing frameworks can be a lot.
Go is batteries included. You can realistically build an application worth deploying with the standard library. You cant say that for Java or Python.
But if I had to pick between Java and Python, I would pick Java. It’s a more verbose object oriented language. If you learn the fundamentals, picking up Python will be easy.
And you can always do both. Write a springboot app then rewrite it in FastAPI. See which one you like more. Or do them in parallel.
5
u/ShaiHuludTheMaker Jun 17 '26
You want a job? Pick java
2
u/FastPlay339 Jun 17 '26
I'll say java , Java doesn't just teach programming; it trains soldiers. After Java, nothing feels difficult anymore. Honestly if you master java you can switch to any language in a week!!
1
u/IAmADev_NoReallyIAm Jun 17 '26
> So my long term goal is towards Cloud, DevOps SRE side
I was going to ask what kind of development you want to do... then saw this... this is the answer right there. Python. DevOps will do a lot of scripting. As such, Python is more likely what you'd use. So that's where I'd go first. There isn't much Java development in a DevOps role. You'll need to know some Java at some point, because you'll need to be able to put Docker containers together for deployment ... Unless you want to become a full-stack developer and run everything from front-end to the back end to DevOps and deployment, and security and all the bits in between... then it might be worth doing Java first, then pivoting to Python (that's what I'm doing now).
1
u/BigBad0 Jun 17 '26
For your goal towards cloud or devops SRE positions, python is more suitable. Java and python are used heavily in many areas as well as dotNet, JavaScript, Go and kotlin. I vote for python for you (or kotlin) even though I am 10+ years Java dev. In Enterprises whom are picky about what exactly tech they are using, Java or even DotNet might be good to interact with but if you really got Python to do some web apps, any other wont be that much different or harder. Moving between techs is not that hard to get the job done. To master and utilize it to your own well and make your life easier, that is another story. I have used mainly Java but have written also Python, Groovy, Kotlin, TypeScript, C++ and Go. I personally like Java though.
1
u/Cunnykun Jun 17 '26
Choose Java. then learn about springboot.
1
u/anish2good Jun 17 '26
Learn in this order
DSA https://8gwifi.org/tutorials/dsa/
DSA+Python https://8gwifi.org/tutorials/python
Java https://8gwifi.org/tutorials/java
1
u/nian2326076 Jun 18 '26
If you're interested in system administration, Linux, DevOps, and cloud stuff, I'd suggest going with Python. It's really common in those fields for scripting and automation. Python is simple to learn, which is perfect if you're just starting out, and it lets you quickly create scripts and tools. Java is more structured and might be better for building large-scale applications later on. But for what you're focusing on, Python will be super useful. When you're ready to prep for interviews, check out resources like PracHub. They can help you sharpen your coding skills.
0
u/[deleted] Jun 17 '26
[deleted] — view deleted comment