i always say programming is the skill, and the language is the tool. choose the right tool for the job. you can hammer in a nail with a screwdriver, but its gonna be a whole lot harder. also it doesnt help to learn how to use a hammer if you have a screw. important is that you learn how to work with your hands (aka aquire skill). algorithms and datastructures translate into any language, some make it easier, some make it harder, others already have ready made solutions or there are libraries. Answer from fredlllll on reddit.com
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ should i learn java or stick to python?
r/learnprogramming on Reddit: Should I learn Java or stick to Python?
August 24, 2019 -

I have been studying programming for the last six months. For the first four months I studied Python, and then I started studying studying data structures and algorithms. For data structures and algorithms, I picked the books where the code was written in Python. Now that I am about to finish that, I have decided to pick Algorithms by Robert Sedgewick. In this book all the code is written in Java.

I want to learn both Java and Python, and I will learn Java at some point. My question is whether I should start learning it right now or not? I know it's not necessary, but I think it will be much easier to follow the book if I have some understanding of Java.

Why am I confused?

Well, I have watched videos, read blogs about people recommending to stick to one language when starting out. So, I am scared to start a new language thinking I might forget Python or get into a situation where I don't understand either of these languages.

๐ŸŒ
Reddit
reddit.com โ€บ r/learnjava โ€บ is it ok to start learning java first before python?
r/learnjava on Reddit: Is it ok to start learning Java first before Python?
March 2, 2021 -

I want to learn about programming and I'm interested in Java. I've been searching Google and most of the results say that I should start with Python. Do I really need to learn Python first? I'm 14 and I want to start and learn to program once I get a new PC.

๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ as a complete beginner what should i start with python or java?
r/learnprogramming on Reddit: As a complete beginner what should I start with Python or Java?
July 2, 2024 -

I am about to join college in 1 month and will be starting my coding journey. On most youtube videos people say that beginners should start with either java or python.

I like Ai stuff and that is mostly done by python (acc to what I found on the internet) but then Java is for mostly opensource and development( again acc to internet). Open source and development seems like more leaning towards better placements but then python seems easy and most Ai and ml is going on python.

I'm very confused right now, I wanna be able to build some good stuff with either language, but starting out is just overwhelming. No idea where to start.

Edit 1: I have kind of decided to start with Java and my college with probably start with C language so I'll try that in the 1 month I have left.

๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ suggestion: should i learn python or java?
r/learnprogramming on Reddit: Suggestion: should I learn python or java?
August 3, 2024 -

Hi! I'm a junior DevOps engineer and I would like to start developing backend too. I already know intermediate python and worked a little bit with django and I would like to dive deep into python and learn it well.

I asked my supervisor for his advice and he thinks that it's better for me to learn Java first. From his point of view Java is more technical and I can become a better developer by learning the fundamentals with it (like polymorphism, interfaces, data types). He considers python as an uneffective shortcut to learn bad software development practices.

At first he convinced me with his argument but then I documented myself better and I saw that even python has all of those concepts, so I feel like if I'm not lazy and l study python well I can achieve the same expertise I would get with Java.

Since I want python to be my main language I'm essentially very skeptical in using my energies in learning java from zero while I could dive deep in python and get solid with it. It's not like I only want to know python overall, but reading a book of 1600 pages like "learning python" takes time and effort and I feel like I want to make that effort on python, not java.

What do you think about it? I could really use your advice, thanks a lot in advance.

๐ŸŒ
Reddit
reddit.com โ€บ r/java โ€บ new to programming did i choose the wrong language? java vs python
r/java on Reddit: New to programming did I choose the wrong language? Java vs Python
August 24, 2020 -

Hey guys,

I just started programming with the end goal of one day becoming an programmer one day but the catch is I don't know in what - web development, Android, iOS , ect.

For those who started programming did you already have an end goal in mind of what type of programmer to be?

I chose Java to start off with and been going at it hard but was thinking I should have done python since it's the most popular.

My goal was to go deep in one language and just learn the ins and outs of it to understand programming but chose Java for some reason but realized the python community is larger.

Am I approaching this wrong ? Any insight and Input????

Find elsewhere
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ java or python ?? what to choose for a suitable career in backend as a fresher
r/learnprogramming on Reddit: Java or python ?? what to choose for a suitable career in backend as a fresher
July 16, 2025 -

hello guys, i am fresher and really confused what should i learn Python or Java for backend , what will be more beneficial , what will be my career path looking like when i choose either of them , please guide me as your help is needed very much , really confused as placement season is going to come soon in my college. please guide

Top answer
1 of 15
9
Dude, I was literally in your shoes 2 years ago and went with Java. Hereโ€™s my take: Java - if you want that corporate bag ๐Ÿ’ฐ Enterprise companies LOVE Java (banks, insurance, big tech) Spring Boot is everywhere in backend roles Salaries tend to be higher for Java devs in my experience More structured, forces you to learn good practices early Job security is insane - legacy systems arenโ€™t going anywhere Python - if you want flexibility and faster learning curve Easier to pick up, more beginner-friendly syntax Django/FastAPI are solid for backend Great for startups and data-heavy companies Opens doors to ML/AI if you wanna pivot later More โ€œfunโ€ to work with imo Real talk though - market demand wise, Java probably has a slight edge for pure backend roles, especially for freshers. Most companies have existing Java codebases and need people to maintain them. But honestly? Pick whichever one doesnโ€™t make you want to cry while coding. Iโ€™ve seen people succeed with both. The fundamentals (databases, APIs, system design) matter more than the language. If youโ€™re really torn, learn Java first (itโ€™ll make you a better programmer overall), then pick up Python later. Itโ€™s way easier to go Java โ†’ Python than the other way around. Also protip: whatever you choose, get really good at ONE framework. Donโ€™t try to learn everything at once - youโ€™ll just confuse yourself. Good luck with placements! ๐Ÿคž
2 of 15
3
yeah so a few months ago i looked at employers job applications and read about their requirements etc. so i would recommend that u do that. front end is highly saturated, don't get into it until later on. i looked at dell for example and this was just one of their requirements: "โ€ขProficiency in hardware, software (Python, C++, Java) and/or operating systems environments" its good to be full stack as well but at the same time u should be focusing on back end first. companies are looking for both but its like 80% back end 20% front end type of way.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ "python vs. java in 2025: which should i focus on?"
r/learnpython on Reddit: "Python vs. Java in 2025: Which Should I Focus On?"
December 10, 2024 -

It's 2025, and I'm at a decision point in my programming journey. I want to dive deep into one language and can't decide between Python and Java.

Here's my context: i am a developer with 10 year experience in java and 5 years in python

  • Python: It's dominating fields like AI/ML, data science, web development, and automation. With its growing libraries and frameworks, it feels like a must-know for cutting-edge tech.

  • Java: Despite being older, it's still a powerhouse for enterprise systems, Android development (with Kotlin in the mix), and large-scale backend solutions. Its stability and performance are undeniable.

๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ can't decide between learning java or python, and want to know what *kinds* of applications each is more widely used for.
r/learnprogramming on Reddit: Can't decide between learning Java or Python, and want to know what *kinds* of applications each is more widely used for.
July 20, 2021 -

I'm a web developer working with HTML, CSS and PHP and I know enough Javascript to get by. When I was a kid I used to code in Visual Basic, and I wanted to get back into that style of programming. So I started taking a C Sharp course.

However, I'm starting to think I'm really marginalizing myself by learning C sharp, because it seems really specific to enterprise apps (or games with Unity) and not widely used. I'd rather learn something more relevant to the industry, particularly that I can use with web applications, but also standalone Windows or console apps.

So now I'm looking into Java vs. Python. I've heard Java is the better place to start because it's easier to learn and more familiar with C languages and Javascript. Knowing Java might also help me improve my JS. But I feel like most of the interesting applications I see are written with Python. I know you can do those same things in Java, like machine learning and web scraping apps, but I haven't seen it done.

Can someone please give me an example of the kinds of applications people are building with Java vs. Python?

๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ java after python.. possible??
r/learnpython on Reddit: Java after python.. possible??
August 8, 2022 -

I have been learning python for a year and I think I can code in python! I just need to work on projects to advance my skills. Lately I have been thinking to learn Java...so I took advice from my friends. They said I will have tough time learning Java because I have learned python before. They said I should have learned Java first and python later... maybe I messed up ๐Ÿ˜…๐Ÿ˜…

Is it true? Will it really be that difficult?๐Ÿ˜ฉ

Python is my first language and I am thinking of learning Java now. Can I?! Please share your opinions

Thanks in advance ๐Ÿค—๐Ÿค—

๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ professor said learn python and java. why?
r/learnprogramming on Reddit: Professor said learn Python and Java. Why?
September 5, 2023 -

Hi all. I am a self taught learner of about 4 months now. In my last semester of school (business major), I took intro to programming and loved it. Really wished I did CS instead. I ended up emailing my professor from that class and asked what his thoughts were on self learning.

He told me to learn Python and Java and to have some kind of structure like an online course. Read the pragmatic programmer, and fluent python/effective Java.

I started with python and eventually found the Odin project and switch gears to js and web dev stuff. I am struggling to find a path and stick with it.

Why would my professor recommend those two languages to start with? Do these languages really relate to web dev? What kind of job opportunities can python and java lead to?

Top answer
1 of 59
134
If you had asked your professor "what's the most common language for web frontend development," he'd've probably told you JavaScript. But there are lots of kinds of programming out there, and Java and Python are a pretty good choice for covering a whole lot of bases. Python's one of the most popular languages out there, especially for what's trendy today (machine learning) and for developing being done by professionals who aren't primarily programmers (scientists, analysts, business-folks, artists). Java's extremely popular for big corporations building lots of complicated little business logic services, and it's still fairly popular for web backends. Plus, there are huge amounts of "learn programming" resources aimed at both of those languages. Also: if you really want to be a professional developer, I might suggest hanging out for an extra year or two to get a CS minor or something if you can. If your plan is to study programming, and they teach programming where you are, why leave? But I also understand that staying in school longer isn't always possible, financially or otherwise.
2 of 59
35
CS professor here. The programming language you choose as a beginner is mostly irrelevant. Python is known as an easy language because its syntax is similar to written English. If you really learn how to program, you'll learn that the language is just a tool. Asking for the "best language" this early is like comparing screw drivers without looking at the screw. Some languages will do some things better, but you don't need to know any of that right now. When you learn how to make a loop in one language, you can do it in nearly any language with the smallest of effort. The hard part is learning how to do something, not how to write it. Go deep, not wide. The things you learn in one language can apply to other languages. Your professor gave you good info. Thank them and take the advice. P.s. I'd rather hire someone who knows one language really well vs. Someone who knows a dozen languages at a shallow level.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ learn java or python?
r/learnprogramming on Reddit: Learn Java or Python?
June 6, 2023 -

Hi,

I am a university graduate who would like to change my career to IT. I want to apply for a requalification course and basically I have two options available - both courses are "Programmer of web applications" - one is in Java and the other is in Python.

I need some help from someone who knows the industry and the pros and cons of choosing either language. I have read a lot of articles and watched youtube videos and it's practically 50:50. I am leaning towards Python though.

I know your first question will be: What do you want to do in IT?

But that's the problem, I don't know. I have never worked in IT and I haven't experienced different types or jobs to be able to know which I like the most. It's like asking me which food from the menu I liked the most before I had a chance to taste it. I like design, so possibly frontend. But I am open to anything. I think fullstack would be a good skillset to have to find lots of work?

What I know:

Java is more complex to write, harder to learn for a beginner. It is used in web development, Android and in a lot of big companies. It is supposedly harder to change fields in IT if you know Java. The popularity of it is slightly decreasing and the community as well (from what I've heard).

Python is easier to write and read, is used in machine learning and AI and databases. Generally slower than Java to execute, has more potential when you are trying to change fields in IT as it is more widely used.

That's what I know. What I need, is help with this question: As someone (a teacher) who is trying to change career and do something that will enable me to find work easily, which language should I choose to learn to open myself to most job opportunities, something that will be a good start, give me most options for the future and will not lock me in in a specific field, should I realise I do not like it. How should I make a decision? Can you tell me in more detail which language is used in which specific types of jobs and what kind of stuff I could do should I learn Python/Java?

Thank you in advance!

Ben

Top answer
1 of 2
5
Java is more complex to write, harder to learn for a beginner. It is used in web development, Android and in a lot of big companies. It is supposedly harder to change fields in IT if you know Java. The popularity of it is slightly decreasing and the community as well (from what I've heard). True that Java has way more boilerplate than Python due to the full Object Oriented paradigm. False that it is more difficult to change fields False that the popularity is decreasing as well as the community. Java is the enterprise language #1 and stays there simply because there is already way too much Java out there Python is easier to write and read, is used in machine learning and AI and databases. Generally slower than Java to execute, has more potential when you are trying to change fields in IT as it is more widely used. Python has way more use cases than you list for it. The very web site we are communicating on is running on Python Yes, it is somewhat slower, but it can use precompiled fast libraries written in C/C++ for speed Python does not have more potential when changing fields and is not more widely used The above said: yes, it is a 50:50 chance. I would say that learning Java makes you a better programmer, though. Python abstracts way too much and has too many "convenience features". Don't get this wrong, though. Python is a great language, but so is Java. If you haven't been exposed to programming, I would still suggest Java. The expressive nature, verbosity, explicit static typing, excellent tooling, and excellent elaborate error messages make it an ideal first language, even though the very first steps are more difficult. Python on the other hand has an extremely easy entry, yet, the implicit typing can cause problems that beginners will easily stumble over and then be left dumbfounded. The error messages have improved lately, but still are by far not as clear as Java's. Yet, don't overthink the whole. The first language you learn will definitely not be the last and every consecutive language will be easier. In the beginning when you start from 0 you are battling at two fronts: you are battling with the vocabulary and grammar of the programming language (the easier battle) and you are battling with creating detailed step-by-step algorithmic solutions to problems (actual programming - the difficult battle). Once you understand that learning a programming language only is a necessary evil to tell the stupid computer what we want it to do and that the actual programming, namely analyzing and dissecting problems and then developing detailed step-by-step algorithms to solve that problems are two distinct, decoupled activities you will also see that programming languages are just tools to express trains of thought. Once you can program, the actually used programming language becomes secondary. Sure, the paradigms, the vocabulary, the grammar will be different, but if you know what you want to express, you can do it in any language. Developing the "what" is the tricky part. It is a bit like learning a spoken language with very restricted English-like vocabulary and grammar and writing a comprehensive fully developed novel in said language.
2 of 2
2
Remember, that no matter what you choose, it won't define your career for years to come - no matter if you start with Python or Java, you can always learn the other, or a third language in far less time than it took to learn the first. Programming is much more about problem solving and understanding computers, than specific languages. I would recommend Python, because you'll fairly quickly be able to build stuff with it. No matter if you are interested in web-applications, desktop games, scripting, data science or something completely different. Java tends (or tended) to give you a better understanding of Object Oriented Programming, because it is very strict about everything being a class, and so on, and the entire API is extremely Object Oriented, with big-Os :) But in later years a lot of this OOP strictness is becoming annoying, you tend to write a lot, and I mean a lot of extra code, simply to make the Java compiler not throw up on you. And even the folks behind Java has realized this, and newer versions include more and more short-cuts for writing more compact code ... Anyways - as for jobs, I guess it depends a lot on where in the world you live and work. Here in northern Europe, Java is mostly used by banks and insurance companies - there are a lot of Java-code running out there, but it seems like no new products or new companies base anything on Java. Also the banks tends to want university masters with 5-7 years of experience ... But again, it doesn't matter - when you have learned some programming, you'll quickly get ideas as what you want to build, and maybe you need to learn Swift or Kotlin or React or C# to build those kind of applications, but that is the way it is going to be, there'll always be more to learn, so might as well just get started, and have fun along the way!
๐ŸŒ
Reddit
reddit.com โ€บ r โ€บ learnprogramming โ€บ comments โ€บ reaoz2 โ€บ python_or_java_as_a_first_language
Python or Java as a first language : r/learnprogramming
December 11, 2021 - Is it recommended to learn Java or Python as a first language? Which language will best teach me foundations of programming? Archived post. New comments cannot be posted and votes cannot be cast.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ will trying to learn java and python at the same time break my brain?
r/learnprogramming on Reddit: Will trying to learn Java and Python at the same time break my brain?
June 18, 2021 -

My college program teaches Java, but I'm more interested in learning Python (for data science/machine learning purposes). I know trying to learn two languages at once is generally not recommended, but is there anything specifically about the structure of Java and Python that would make it a bad idea for me to try to learn Python on my own?