Is java more useful or python ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is java more useful or python ?

13th Jun 2019, 7:51 AM
Adi Nath Bhawani
Adi Nath Bhawani - avatar
5 Answers
0
Java runs on the JVM which you can think of as a compatibility platform. So if you want to ship software, that runs on different Operating Systems, you want to go with java. However the JVM has different use cases than Java, like other languages, that compile to that machine and easily allow interop to java functions. Python on the other hand is an interpreted language, which makes it really fast to develop. The syntax is easy to read and it is scriptable, which allows much faster prototyping than java. It is like comparing Apples with bananas. They are for quite different use cases
13th Jun 2019, 8:25 AM
Loeschzwerg
+ 3
Both language have some pros and cons ... Most of the android mobile apps are being developed using Java which python can do that efficiency while java can't perform that well in AI which python can do it easily.... So both languages are useful depending upon the platform.
13th Jun 2019, 7:56 AM
Rohit
+ 1
I am asking this question in view of programming aspect Suppose I take example of question long adder. I found that a person had written only one line in Python language for the question. But when I tried it in Java , it extended to some 100 lines and more . So, I am asking, while programming, which is more useful , Java or Python ?
13th Jun 2019, 8:51 AM
Adi Nath Bhawani
Adi Nath Bhawani - avatar
+ 1
Try for the question "long adder"
13th Jun 2019, 2:09 PM
Adi Nath Bhawani
Adi Nath Bhawani - avatar
0
Depends on your needs. There is no ultimate answer to this question, otherwise there would be one language and that's it. Actually I highly doubt, that you need 100 lines of code for a python line to work in Java
13th Jun 2019, 8:58 AM
Loeschzwerg