+ 1

What are the advantages of Python over Java? And vice versa?

13th Jul 2017, 2:24 AM
faizan
4 Answers
+ 10
pythons advantage over java is its development time, and syntax. you can code something really fast and not worry about details. its good for prototyping, and the code is very readable. java, while not known for speed, is significantly faster at running tasks than python, however development time is slower. it has better graphic capabilities, and is the go-to if you want to make an app thats cross platform. so, ideally, you'd use python for small tasks and prototypes, and java for bigger tasks.
13th Jul 2017, 2:54 AM
Ahri Fox
Ahri Fox - avatar
+ 6
Python is highly readable, versatile (in the sense that it comes with a remarkable amount of libraries), and prioritizes good coding style, making it perfect for a beginner. It is also a scripting language, meaning that it executes slower, however, it can be edited during runtime. Java is versatile, fast, and intricate. If a language isn't capable of it, Java likely is. Java has an excellent execution speed, and has the power of being capable of many things. Furthermore, Java is cross-platform; meaning that the same code can be run on PC, Mac, Linux, and more.
13th Jul 2017, 2:47 AM
Keto Z
Keto Z - avatar
+ 1
Python teaches you the importance of indentation, and it has a lot of community written libraries. however, there was a huge change in syntax between python 2 and python 3. of course, it's generally preferred to use the newest version where possible, but the jump was so vast, there is a divide between version 2 and 3 developers. I learned python 2 a long time ago, and never really needed to use 3 so I've never learned it. Java is overall a well rounded beginner language. it comes with a bunch of useful libraries pre-installed so you can get a lot done with Java. The nice thing about Java is that it's similar to C++ and is generally the stepping stone either from or to C++.
13th Jul 2017, 2:38 AM
Andrew Lampert
Andrew Lampert - avatar
0
According to me both are identical! Let me tell you the main drawback of Python. There you go - Python being a scripting language is very fond of hacking, injecting malicious codes. Whereas Java is resistant to such cases. But Java is not as good as Python in easy and fast code execution. So both of them have their own Pros and Cons.
17th Jul 2017, 10:18 AM
Axel Blaze
Axel Blaze - avatar