Question:
What is easier to learn: Python or Java?
Mario
2012-10-28 14:59:43 UTC
Also, what are the main differences between them?
Four answers:
Ocelot
2012-10-28 15:03:44 UTC
Python is easier but out dated.
husoski
2012-10-29 00:08:06 UTC
You can do a lot with either one, but both is nicer. Notice that anybody who gives an answer based on experience has done just that. Some are based on less experience than others. Some misconceptions:



1. Python is easier than Java: Maybe, maybe not. It depends on the learner and on past experience.



2. Python is only good for console programs: Nope. Python comes stock with a couple of different windowing frameworks and has bindings available for several others. Just launch a program with pythonw instead of python, and you get no ugly black console. That's the normal way to launch a GUI program written in Python.



3. Python is outdated: Again, no. It's actively developed, is in its third major revision of the language, and has practical applications in a lot of areas.



As it happens, I like Java more for desktop windowed apps. The NetBeans IDE has a form designer that takes much of the rote coding out of the creation and layout of graphical elements. But Python is the language I go to most often when I want to test out a computational idea. It's also good for network tasks, so when I wanted to whip up a "daily dilbert" app to fetch todays strip from the Dilbert website, Python made that easy. (Not so easy now, with a fancier web interface, so my "mini-bot" is out of date.)



If you are a US high school student with university plans, the language used in AP Computer Science classes is Java. As a result, the intro class that students are hoping to skip by getting a 4 or 5 on that (expletive deleted) exam will probably be in Java too.
?
2012-10-28 22:06:09 UTC
I don't program in Java, I'm a Python guy.

I'd firstly begin by saying I'm pretty confident that Python is easier to learn. But that doesn't come without it's drawbacks.



Java is far more useful, one might say, when it comes to applications, and running game engines. Python, despite being easier to learn, doesn't execute as fast as C++ or Java do. It's also not as widely used as Java and C++ is.



However, Python can be useful in ways that it can shorten code immensely compared to C++ or Java, so it's often used as Speed Python, or integrated with other languages in order to run certain features.



In terms of games, for example. Civilization 5 runs on a C++ core as speed is needed for the core, but the rest is made in Python.
?
2012-10-28 22:05:23 UTC
To be honest, I find both easy. Python is said to be easier thought. I probably found Java easy because I had lots of programming experience when I first learned java.



Python requires python to be installed on the target computer to run.

Java also requires Java Runtime Environment to run.



Python can only run on the desktop.

Java can take form in applets utilizing Abstract Window Toolkit or Swing libraries to be run on the browser. It can also be deployed as a webstart application or a desktop application.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...