DEV Community

Cover image for Is Java and Python similar?
narendra8989
narendra8989

Posted on

Is Java and Python similar?

I don't think python and Java have anything in common. I enjoy the simple clean utilitarian nature of python. As long as simple pep8 guidelines are followed it is very easy to read any strangers code. Most people write python in an OO sort of way. However one can get pretty far in writing with an FP lite methodology. Many people complain about indents. To me it is just different and something easy to get used to. Python has idioms that values being clean and concise. It is trivial to deploy. My main critique of python is that if one uses too much python it is easy to get dumbed down by all the magic. It is important to use other languages in addition to python just to keep ones skills sharp. Thinking about writing high performing Python usually means thinking about doing it in some other language.

By comparison IBM has proved that by following “standards” one can create nearly unreadable Java code. Inheritance is exploitable to the point of profanity. Anything but a strange version of OO is a waste of time. Java is exhausting to write and deploy. It is very pendantic. There are perhaps less popular ways to write Java that are tolerable but will confuse the masses. It is also annoying having to manage all the things associated with writing Java. The fact that multiple companies exist to solve this problem is ridiculous. This doesn't even include all the open source tooling. Java values factory style development where engineers of any skill are replaceable with any level of skill. This has empowered the dumbing down of the industry and encouraged the solving of problems by adding more labor which is a huge mistake. It is also very disrespectful to data which is unforgivable to me. Thinking about writing high performing Java requires thinking about writing for the JVM which is an interesting science unto itself.

Note: I recognize Java is the most popular language in the world. Many great successfull applications use Java. One can eventually use Java to solve almost any problem. That doesn't mean I like it or think it is good for the industry.

They both do not possess enough similarities to call them similar.

Similarities:

Both have Garbage Collection.
Both support Object Oriented Programming concepts
Both are platform independent*.
(Some more but these are the main things that come to my mind)

Differences:

Java is complied language (interpreted if you consider the JVM and JIT) while Python is fully interpreted.
Java is strongly typed while Python is not.
Java enforces a OOP style of programming whereas Python can be used for any type.
Java has more support for OOP concepts that in Python (encapsulation and inheritance somewhat is not fluent in Python).
Both have different areas of expertise (Areas where they are used extensively).
Python is mostly used for writing small scripts while Java is used for developing enterprise grade applications.
But in the end both can be used to accomplish the same objective. Just the amount of effort required in each will vary due to the inherit advantages of one language over the other. This is applicable to any two programming languages.

Meet the Experts For better Guidence : https://nareshit.com/python-online-training/

Top comments (0)