No, learning any programming language before Java will make learning Java easier. Answer from ectomancer on reddit.com
🌐
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 🤗🤗

🌐
Medium
medium.com › data-science › rewiring-your-brain-from-python-to-java-383960580098
Rewiring Your Brain from Python to Java | by Dan Hales | TDS Archive | Medium
September 24, 2020 - C pointers confused me until I got used to working with Java reference variables, and lambda expressions in Java baffled me until I saw how they were used in functional programming with Python… which in turn wraps back around to clarifying why we need function pointers in C. Although it may seem daunting, just remember that many programmers before you have successfully learned Java, so it absolutely can be done.
Discussions

Learn Java from Python background - Stack Overflow
The big difference with the language coming from Python is the fact that all variables are typed. The other hard thing with Java has to do with the bewildering array of Java APIs out there. The fact that you are interested in Android is an advantage here. After becoming comfortable with the core language, I suggest you start learning ... More on stackoverflow.com
🌐 stackoverflow.com
just started learning Java after Python
This is why Python is horrible for beginners. You get used this the lax syntax and the loosey-goosey world of dynamically typed languages. Now when you see a more typical language like Java, you're repulsed. More on reddit.com
🌐 r/learnprogramming
14
0
November 9, 2024
Starting to learn Java after learning a fair bit of Python, intimidated.

You should start with the Java MOOC by the University of Helsinki. Its everything you will need to get started with learning the Java syntax. As you found out for yourself, one of the differences between Java and Python is that Java is a strongly typed language. Meaning you have to specify the data types before asigning them values.

Anyhow, after you complete the MOOC (both parts - 1 and 2) you will probably have enough knowledge to do anything regarding Java. Then you can go do android development if you so wish.

Good luck!

More on reddit.com
🌐 r/learnjava
15
36
June 6, 2019
Is it bullshit: Know Java, easy to learn Python. But not the other way around.
However, I've read some posts where people say learning Java as a first language will be much better than learning Python as a first language because it is easier to transfer from Java to Python but not the other way around. It's easier going from Java to Python because Java contains a lot of useless boilerplate code that you can skip in Python. But that doesn't make Java a better first language, as that boilerplate code is exactly what will waste all your time and confuse you when you are getting into programming. Python makes a nice first language exactly because it allows you to focus on the high level programming concepts. Case in point, Hello World in Python: print("Hello, World") Hello World in Java: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); } } More on reddit.com
🌐 r/learnpython
99
110
August 11, 2019
🌐
Team Treehouse
teamtreehouse.com › community › is-it-easy-to-learn-java-after-your-learned-python
Is it easy to learn java after your learned python? (Example) | Treehouse Community
February 2, 2018 - The good thing about programming is the logic behind programs is always the same across all languages, it's the syntax that differs. So in my experience once I knew one language I picked up others in about the same amount of time. I guess it would matter on how quick of a learner you are, but I can tell you Java is a bigger beast than Python.
🌐
Sololearn
sololearn.com › en › Discuss › 1634607 › is-it-difficult-to-learn-java-and-python-at-the-same-time
Is it difficult to learn java and python at the same time?
December 26, 2018 - Sololearn is the world's largest community of people learning to code. With over 25 programming courses, choose from thousands of topics to learn how to code, brush up your programming knowledge, upskill your technical ability, or stay informed about the latest trends.
🌐
DEV Community
dev.to › claudiodavi › the-journey-from-java-to-python-5h1m
The Journey From Java to Python - DEV Community
June 11, 2019 - It used to take me a day to go from a Factory to a full REST endpoint with Java, now it takes me a couple hours to model a basic CRUD application with Python and Flask. Python also has its weaknesses, after I transitioned what I miss the most is the static checked type system.
Find elsewhere
🌐
Quora
quora.com › Is-it-better-to-learn-Python-first-then-move-on-to-Java-or-to-go-from-Python-straight-into-Java
Is it better to learn Python first, then move on to Java, or to go from Python straight into Java? - Quora
Answer (1 of 3): Hello, There is no connection. Learn the language that you want first. Any general programming language can theoretically solve any problem. Java is faster than Python but if you have learned Python you do not need Java. Life is short do not learn all programming languages. Pro...
🌐
Coursera
coursera.org › coursera articles › computer science and engineering › web and app development › python vs. java: which should i learn?
Python vs. Java: Which Should I Learn? | Coursera
3 weeks ago - In as little as two months, you’ll have the opportunity to learn fundamental Python programming concepts, including data structures, networked application programming interfaces, and databases. Upon completion, you’ll earn a shareable certificate for your resume. When it comes to sheer speed, Java is a clear winner.
🌐
Runestone Academy
runestone.academy › ns › books › published › java4python › index.html
Welcome to Java for Python Programmers — Java for Python Programmers
Java for Python Programmers · Preface · Introduction · Why Learn another programming Language? Lets look at a Java Program · Java Data Types · Conditionals · Loops and Iteration · Defining Classes in Java · Naming Conventions · Common Mistakes · Java Documentation ·
🌐
Medium
medium.com › womenintechnology › journey-to-java-part-1-d8fa449db764
Journey to Java: Part 1. Learning Java as a Python Programming… | by Nisha Kaushal | Women in Technology | Medium
January 27, 2024 - Journey to Java: Part 1 Learning Java as a Python Programming Data Scientist Why Java, and Why Now? A while ago, when I was in undergrad at UC Riverside obtaining my Bachelor’s in Mathematics, I …
🌐
Reddit
reddit.com › r › learnjava › comments › bx2j4t › starting_to_learn_java_after_learning_a_fair_bit
r/learnjava - Starting to learn Java after learning a fair bit of Python, intimidated.
June 6, 2019 -

Java seems much more intense than Python did. Just a simple print statement is like 3-4 more words in Java than in Python. I want to learn Java because it seems much more robust and it will fill in a lot of the gaps I have. I also would like to be able to make my own android app as a side project in the future.

Is there some sort of flowchart or guide on what I should be teaching myself, almost like a curriculum? I want to set a path out in-front of me and cross off sections when I feel comfortable. For reference I got to the point where I am able to do KATA 5 level problems on codewars with python so im still a beginner over there too.

Thank you for any advice.

🌐
Quora
quora.com › How-hard-is-it-to-learn-Java-if-I-already-know-how-to-program-in-Python
How hard is it to learn Java if I already know how to program in Python? - Quora
Answer (1 of 55): This is how you declare a list of strings in Java (before 9): [code]List mylist = new ArrayList (); [/code]This is how how you declare a list of an undefined type in since Java 9 (thanks Bernard Louw for the comment) [code]List anytypeList = Collections.emptyList...
🌐
Reddit
reddit.com › r/learnpython › is it bullshit: know java, easy to learn python. but not the other way around.
r/learnpython on Reddit: Is it bullshit: Know Java, easy to learn Python. But not the other way around.
August 11, 2019 -

Hello people, I am looking to learn a programming language during the summer before college. The classes I'll be taking at univerisity uses Java. However, I've been trying to learn Python on my own for around two weeks using Automate the Boring stuff and Code academy. So I am still a noob. However, I've read some posts where people say learning Java as a first language will be much better than learning Python as a first language because it is easier to transfer from Java to Python but not the other way around. Now I am conflicted in which language I should devote myself to for the rest of the summer. Please give some advice. Thanks!

Edit: Thanks to everyone who replied and who tried to help. So some said that Python allows you to skip the useless code which therefore allows you to focus more on the concepts. While some said that Java forces you to explicitly write out all the steps which teaches you more on the fundamentals. Although I will eventually be learning Python as I am interested in Machine Learning/AI I think I will be learning Java for the rest of summer until university starts simply because of the fact my classes uses Java so I was think about getting a slight head start. Once again, thank you to everyone who helped.

Top answer
1 of 7
26
  • Don't put everything into classes. Python's built-in list and dictionaries will take you far.
  • Don't worry about keeping one class per module. Divide modules by purpose, not by class.
  • Use inheritance for behavior, not interfaces. Don't create an "Animal" class for "Dog" and "Cat" to inherit from, just so you can have a generic "make_sound" method.

Just do this:

class Dog(object):
    def make_sound(self):
        return "woof!"

class Cat(object):
    def make_sound(self):
        return "meow!"

class LolCat(object):
    def make_sound(self):
        return "i can has cheezburger?"
2 of 7
23

The referenced article has some good advice that can easily be misquoted and misunderstood. And some bad advice.

Leave Java behind. Start fresh. "do not trust your [Java-based] instincts". Saying things are "counter-intuitive" is a bad habit in any programming discipline. When learning a new language, start fresh, and drop your habits. Your intuition must be wrong.

Languages are different. Otherwise, they'd be the same language with different syntax, and there'd be simple translators. Because there are not simple translators, there's no simple mapping. That means that intuition is unhelpful and dangerous.

  • "A static method in Java does not translate to a Python classmethod." This kind of thing is really limited and unhelpful. Python has a staticmethod decorator. It also has a classmethod decorator, for which Java has no equivalent.

    This point, BTW, also included the much more helpful advice on not needlessly wrapping everything in a class. "The idiomatic translation of a Java static method is usually a module-level function".

  • The Java switch statement in Java can be implemented several ways. First, and foremost, it's usually an if elif elif elif construct. The article is unhelpful in this respect. If you're absolutely sure this is too slow (and can prove it) you can use a Python dictionary as a slightly faster mapping from value to block of code. Blindly translating switch to dictionary (without thinking) is really bad advice.

  • Don't use XML. Doesn't make sense when taken out of context. In context it means don't rely on XML to add flexibility. Java relies on describing stuff in XML; WSDL files, for example, repeat information that's obvious from inspecting the code. Python relies on introspection instead of restating everything in XML.

    But Python has excellent XML processing libraries. Several.

  • Getters and setters are not required in Python they way they're required in Java. First, you have better introspection in Python, so you don't need getters and setters to help make dynamic bean objects. (For that, you use collections.namedtuple).

    However, you have the property decorator which will bundle getters (and setters) into an attribute-like construct. The point is that Python prefers naked attributes; when necessary, we can bundle getters and setters to appear as if there's a simple attribute.

    Also, Python has descriptor classes if properties aren't sophisticated enough.

  • Code duplication is often a necessary evil in Java (e.g. method overloading), but not in Python. Correct. Python uses optional arguments instead of method overloading.

    The bullet point went on to talk about closure; that isn't as helpful as the simple advice to use default argument values wisely.

🌐
Quora
quora.com › Can-I-learn-Python-in-a-month-if-I-know-Java
Can I learn Python in a month if I know Java? - Quora
Answer (1 of 6): Absolutely. Your background in Java will be a huge asset as you ramp up to it. The biggest difference you’ll find is that python is weakly typed so you can do things like [code]x = 1 print(x) x = “hi” print(x) [/code]Console output: > 1 hi This may take a little getting ...
🌐
Sololearn
sololearn.com › en › Discuss › 1014732 › which-should-i-learn-next-after-learning-python-should-i-learn-c-first-or-java-
Which should i learn next after learning Python ...
sl_scroll_/de/Discuss/2848516/how-is-python-used-in-the-ai-artificial-intelligence-fieldPending · Maximum Storage Duration: SessionType: HTML Local Storage · sl_scroll_/de/Discuss/2864826/java-erp-softwarePending · Maximum Storage Duration: SessionType: HTML Local Storage · sl_scroll_/de/Discuss/2883368/which-courses-do-i-have-to-learn-to-create-aiPending
🌐
Roadmap
roadmap.sh › java
Learn to become a modern Java developer
January 27, 2026 - The first thing to focus on is to learn the Java programming language, gaining an understanding of its core concepts, typing system, and some Object Oriented Programming (given how Java is highly based on it).