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 🤗🤗

🌐
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 ·
People also ask

Can I take the course for free?
No, you cannot take this course for free. When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. If you cannot afford the fee, you can apply for financial aid.
🌐
coursera.org
coursera.org › browse › computer science › software development
Introduction to Programming with Python and Java | Coursera
Is this course really 100% online? Do I need to attend any classes in person?
This course is completely online, so there’s no need to show up to a classroom in person. You can access your lectures, readings and assignments anytime and anywhere via the web or your mobile device.
🌐
coursera.org
coursera.org › browse › computer science › software development
Introduction to Programming with Python and Java | Coursera
How much math do I need to know to take this Specialization?
The only math that learners will need for this Specialization is arithmetic and basic concepts in logic.
🌐
coursera.org
coursera.org › browse › computer science › software development
Introduction to Programming with Python and Java | Coursera
🌐
Coursera
coursera.org › browse › computer science › software development
Introduction to Programming with Python and Java | Coursera
This Specialization starts out by teaching basic concepts in Python and ramps up to more complex subjects such as object-oriented programming and data structures in Java. By the time learners complete this series of four courses, they will be able to write fully-functional programs in both Python and Java, two of the most well-known and frequently used programming languages in the world today.
Rating: 4.5 ​ - ​ 1.9K votes
Top answer
1 of 4
3
I get so many errors. Honestly, even though you said "no videos or tutorials", you need one. Do the MOOC Java Programming from the University of Helsinki. Python and Java are very different beasts. You can be a decent programmer at either and will find the other difficult. Hence, do a course. I just recently started learning Python coming from a long history (>3 decades) of professional programming in multiple languages (Delphi, VB, C, Java, bit of C#) and still found that I absolutely need a structured course to get started. The gap between the languages was just too big. Sure, with the experience, you can breeze through the initial chapters as they deal with very basic things, like variables, conditionals, input/output, but you will still learn a lot. If you absolutely do not want to go that way, you need to learn to read and understand the errors and debug them. Yet, going this approach will make it way more tedious than it need be.
2 of 4
3
I highly recommend these two free online Java courses: MOOC.fi . The courses have you learn Java while simultaneously doing mini exercises to apply what you learned. The exercises get more complex as the course goes on. At the end of the second course you create a pretty decent GUI game. I skimmed your profile to gauge your level of Python. You'll probably find the first half of course 1 pretty easy, but everything after that will likely be mostly new to you. Course 2 will likely be all new to you. It's very easy to learn Python without really thinking about object oriented programming (OOP) concepts, but with Java you must learn object oriented programming concepts. After those two courses, I recommend doing a couple of small projects in Java and then reading a book on OOP design patterns. I recommend a called book "Head First Design Patterns". After that you should have a very solid understanding of Java and OOP fundamentals.
🌐
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...
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.

Find elsewhere
🌐
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.
🌐
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 ? Should i learn C++ first or Java ? | Sololearn: Learn to code for FREE!
Hope this article will help you 💚 -https://teamtreehouse.com/community/should-i-learn-c-first-or-java --https://www.upwork.com/hiring/development/java-vs-c-which-language-is-right-for-your-software-project/ ---https://www.quora.com/What-makes-C++-better-than-Java · 18th Feb 2018, 1:20 PM · Baraa AB · + 2 · thank you all for your suggestions · 2nd Feb 2018, 11:02 PM · Euroken · Answer · Learn more efficiently, for free: Introduction to Python ·
🌐
Reddit
reddit.com › r › Python › comments › 6qi64w › learning_python_after_learning_java
r/Python - Learning Python after Learning Java
July 31, 2017 -

Hey Python,

I learned Java several months ago in a highschool AP CompSci class and the way I learned it was through various projects / assignments the teacher assigned. I really liked this method of learning because I had a specific task or set of problems I had to solve so it made everything easy for me to do, my question is the following... Are there any lessons, assignments or projects online with a set of problems I'd have to solve but for Python? I want to learn python as soon as possible and find it easier to learn when I have something to do.

Also I should add that I know the basic Python syntax, I watched an hour long video that was meant for learning Python after learning Java.

Thanks in advance.

🌐
Class Central
classcentral.com › subjects › programming › programming languages › java
Free Course: From Python to Java: Fundamentals of Programming from University of Wolverhampton | Class Central
March 15, 2018 - Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission. University of Wolverhampton via Canvas Network Help ... This course may be unavailable. Affiliate notice · This course may be unavailable. Go to class ... This course covers the fundamentals of programming, teaching students how to transition from Python to Java.
🌐
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 - You might not have a solid grasp at Python fundamentals, but in the next part, I will write about how to actually get to writing some Python - with direct translations from what you know from Java! You’ve seen that Python gives you a lot of freedom, but with this freedom comes the responsibility to make sure you keep writing good code!
🌐
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.

🌐
GitHub
github.com › blu3r4y › python-for-java-developers
GitHub - blu3r4y/python-for-java-developers: If you are a Java developer and want to get a quick glance at Python, this course is for you · GitHub
If you are a Java developer and want to get a quick glance at Python, this course is for you - blu3r4y/python-for-java-developers
Starred by 66 users
Forked by 13 users
Languages   Markdown 62.4% | Python 15.9% | Java 7.7% | HTML 4.5% | Jupyter Notebook 4.5% | CSS 2.5%
🌐
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 …
🌐
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!
December 26, 2018 - So by learning python, we will grow up in technology by making a software, or by making a website and or by making tools for security and so many applications are there for python language. If you wish to learn java, then refer this :- Learn Java - Free Interactive Java Tutorial https://www.learnjavaonline.org And if you wish to learn python, then refer this :- Python Tutorial: Learn Python For Free | ...
🌐
DEV Community
dev.to › alli › what-happened-when-i-learned-java-and-python-at-the-same-time-1haa
What Happened When I Learned Java and Python at the Same Time - DEV Community
August 13, 2019 - 😆 Java was my first language so it will always have a special place in my heart, but now my go-to is definitely Python. ... I had a similar experience where the interperter complained about me using list.add(item). To be honest, I think it's good not to stay with one language too long because you'll forget the rest ... Hacker. Learner. Engineer. Creator of noted. ... The Java tutorials are pretty good for learning Java, actually, and it's nice that they're free!
🌐
Medium
medium.com › javarevisited › is-switching-from-python-to-java-is-a-good-idea-86a3b81f3475
Is Switching From Python to Java is a Good Idea? | by John Selawsky | Javarevisited | Medium
April 25, 2023 - However, knowing two languages is always better than one. If you are thinking of learning a second language after Python, Java could be a really nice choice.
🌐
freeCodeCamp
forum.freecodecamp.org › t › i-am-learning-java-in-college-but-i-like-python › 252991
I am learning java in college but I like python - The freeCodeCamp Forum
January 21, 2019 - Right now I am learning Java in college but I love working with Python/Django because of its simplicity I found that I do a lot of coding in java to get very small results especially for web development. Can I study pyth…
🌐
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 - There are a lot of coding processes Python does in the background that make it a fast and powerful language, but Java is much more verbose and that will add significant time to your learning curve.