Can Python replace Java?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can Python replace Java??

Java is most widely used programming language Python is used to reduce the code and also a well known language. As python requires less coding compare to java then why we are not using it highly? Why there are jobs for java,. Net more for freshers and why there are less jobs for python freshers? I need help to know more about this issue.

15th Jul 2017, 1:48 PM
sushmita manche
sushmita manche - avatar
3 Answers
+ 5
Java is stronger in some ways than Python, and vice versa. Java is more complex, has a stronger structure to it, and is cross-platform. Meanwhile, Python is highly readable, and prioritizes white space and programming style.
15th Jul 2017, 2:22 PM
Keto Z
Keto Z - avatar
+ 3
Comparing python with java directly is like comparing apples and oranges. We can compare some of their strengths, but they're two different languages. For one, python is an interpreted language, aka scripts. It requires python3 in order for the computer to understand anything. It also requires very little compiling. It's a higher level language than java (more abstract), which means it almost looks like English to a Human. It also uses a pretty efficient but restrictive memory management system (garbage collector). Java is a virtual machine, everything you do java related is run within the java program. This is why java programs are so flexible when it comes to cross platform. As long as the java application is compatible, then you can pretty much run any java program. However, unlike python, java programs are compiled so that the java application can read/run them. There is also a lot more support for graphics and other such things that python doesn't have without downloading libraries for it. Even then, python is more of a background language, used for manipulating data. It sounds boring but you can't really appreciate it till you understand data analysis on a large scale. It's not as if python can't do what java does internally, but it's better used for other things. The same is said for java. There is a language out there that combines the two, but I haven't checked into that, yet.
15th Jul 2017, 3:41 PM
Sapphire
0
Thanks a lot both of you.
15th Jul 2017, 3:45 PM
sushmita manche
sushmita manche - avatar