I would take a project you've implemented in Python and try converting it to Java. Since you already know basic programming fundamentals, it'll probably be easier if you take things you know how to do and figure out how you'd do the same sort of operations in Java (or whatever new language you want to learn).

In the end, the only way to learn to write code, is to write more code.

Answer from Erich Douglass on Stack Overflow
๐ŸŒ
Reddit
reddit.com โ€บ r/learnjava โ€บ i know python, how long will i take to learn java?
r/learnjava on Reddit: I know python, how long will i take to learn java?
January 3, 2023 - Personally I followed the same path, learned the basics of python on my own and transitioned to java about a month or 2 later. Been using only java for about 3 months now, and I think I like it better.
๐ŸŒ
CodingNomads
codingnomads.com โ€บ blog โ€บ how-long-does-it-take-to-learn-java
How Long Does it Take to Learn Java?
This blog covers: How long does it take to learn Java? On average, it takes 4-12 months to learn Java from core Java basics to professional Java developer.
๐ŸŒ
Reddit
reddit.com โ€บ r/feedthebeast โ€บ how easy is it to learn java after you learn python?
r/feedthebeast on Reddit: How easy is it to learn Java after you learn Python?
November 15, 2017 -

I just started a class today and found out i will be learning Python, how easy is it to transfer my skills into modding minecraft, Assuming I do well and actually learn to code in Python?

Note: I have never coded before, sorry if this is a noob question.

๐ŸŒ
Noble Desktop
nobledesktop.com โ€บ how long does it take to learn java?
Java: How Long Does it Take to Learn?
As programming languages go, Java is moderately easy to learn. The most significant challenge in learning Java is its lengthy syntax, which is more complicated than a language like Python. Expert estimates of how long it takes a beginner to learn Java range from six to 18 months, averaging ...
๐ŸŒ
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 ๐Ÿค—๐Ÿค—

๐ŸŒ
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...
Find elsewhere
๐ŸŒ
YouTube
youtube.com โ€บ watch
Learn Python in 60 Minutes from Java - YouTube
http://www.krohneducation.com/Topics with Timestamps:1:13 - Print Statements4:02 - Comments4:59 - Variables7:58 - Mathematical Operators10:01 - Casting11:25 ...
Published ย  December 8, 2015
๐ŸŒ
Quora
quora.com โ€บ How-long-would-it-take-for-a-Java-developer-to-learn-Python
How long would it take for a Java developer to learn Python? - Quora
Answer (1 of 7): That depends on how you define "learn" Python. There are many different ways of looking at it, which is mirrored by the answers thus far: * Being able to express the solution to your problem in Python and writing short scripts. * Being able to write more complex applications....
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.

๐ŸŒ
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 - 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. It will most likely take you a lot longer to learn than Python did.
๐ŸŒ
Quora
beginnercoder.quora.com โ€บ How-long-will-it-take-for-me-to-learn-Java-I-know-Python-PHP-SQL-and-some-C-C
How long will it take for me to learn Java? (I know Python, PHP, SQL and some C/C++) - Beginner coder - Quora
Answer (1 of 3): Learning Java will be much easier if you already know Python, PHP, SQL, and some C/C++ Langauge. Java is very similar to Python in terms of syntax. However, you should be aware of some significant differences between the two languages. It is important to understand these differen...
๐ŸŒ
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? | Sololearn: Learn to code for FREE!
My advice is not to learn 2 languages at the same time. It could make you confused about syntax and other concepts in both languages. ... Java and Python are like two opposite languages For me it's better you learn one buh its not bad if u learn both
๐ŸŒ
Programiz PRO
programiz.pro โ€บ resources โ€บ time-to-learn-java
How Long Does It Take to Learn Java?
August 23, 2023 - Your reason for learning Java and how proficient you aim to also impact your learning time. For example, if you are learning to solve programming problems like "Find prime numbers between 1 and 100", learning the Java basics is enough, and it won't take long.
๐ŸŒ
Quora
quora.com โ€บ How-long-will-it-take-me-to-learn-Java-if-I-am-an-intermediate-level-Python-programmer
How long will it take me to learn Java if I am an intermediate level Python programmer? - Quora
Answer (1 of 5): Since you already know Python you have a BIG advantage as you understand logic, loops, functions and problem solving. For most people like you * In about 1 month you can learn Java basics * In 2 to 3 months you can start building ...
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ how long would it take me to learn python if i know languages like c and java?
r/learnpython on Reddit: How long would it take me to learn python if I know languages like C and Java?
February 9, 2022 -

Hello, I want to start learning python because I recently started a machine learning class at my school, and I'm wondering how long would it take me to learn all of python?

Top answer
1 of 4
2
Isn't possible to answer this question. No one learns all of Python, or all of any language. Look at a number of the introductory tutorials listed in this subreddit sidebar for some starting points. If you're working with Python for machine learning, then you'll likely be working with table/matrix libraries like Pandas and Numpy; scientific and machine learning libraries like SciPy and sklearn; and perhaps a deeplearning library like Pytorch or Tensorflow. There are also many additional libraries that extend the functionality of Pytorch and Tensorflow (thinking about Pyro for probabilistic programming, that extends Pytorch). Additionally, you'll probably want to familiarize yourself with some data vis libraries like Matplotlib, Seaborn, etc., and perhaps some database interfaces if you're working with data in databases (Pymongo, SQL, etc.). That said, there are so many libraries for Python that have nothing to do with machine learning, so... I wouldn't be surprised if you never needed to touch many of them, or didn't have any reason to seek them out. If you're looking for some basic review of Python, I would recommend one of the big O'Reilly books like Fluent Python, which is really an overview and primer on all the built-in modules, data types, and language nuances.
2 of 4
1
"all of python" is a lot different than "enough". You can learn the basics of python in minutes, maybe hours if you already know C. Then it's just a matter of practicing it until it sinks in. Using a site like this is a good reference: www.pythoncheatsheet.org There are some cool python things like comprehensions/generators/lambdas to learn, but mostly if you know C, you'll be fine just learning the syntax as well. After that it's a matter of figuring out what you need from what standard library. For example, take a look at this code: def twoSum(nums, target): store = {} for i,n in enumerate(nums): if target-n in store: return store[target-n], i store[n]=i Should not take you long to figure out what everything here is, like you might have to google what 'enumerate' is or maybe you don't know that store = {} is declaring a dictionary. But the rest of it, variable declarations, for loops, if statement, return should all be familiar. enumerate btw, returns a the index, and the value from a list at the same time as a tuple.
๐ŸŒ
Coursera
coursera.org โ€บ coursera articles โ€บ computer science and engineering โ€บ how long does it take to learn java?
How Long Does It Take to Learn Java? | Coursera
November 24, 2025 - Explore methods for learning Java and find out how long it might take to learn based on your goals, previous experience, and other factors.
๐ŸŒ
Aryaboudaie
aryaboudaie.com โ€บ java โ€บ python โ€บ technical โ€บ educational โ€บ 2017 โ€บ 11 โ€บ 13 โ€บ python-for-java-programmers.html
Python for Java Programmers - Part 1 - The Big Picture โ€” Learning Python as a Second Language ยป Arya Boudaie's Personal Site
November 13, 2017 - The way of becoming good at programming ... of Java, then one semester of Python, etcโ€ฆ Rather, when you learn one language, it should be fairly easy for you to pick up another one, or at least easy as learning your first one was.
๐ŸŒ
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.