Ask coding questions

← Back to all posts
Java Vs. Python!
LoveFromSkyy (137)

Which is better?

Information from sources:

Java is Object-oriented - In Java, everything is an Object. Java can be facilely elongated since it is predicated on the Object model.


Python is a Beginner's Language − Python is a great language for beginner-level programmers and supports the development of a wide range of applications from simple text processing to WWW browsers to games.


Personal opinion:

If I were to make a Pros/Cons of Java and Python (Which I will put later in this post) the negative weight of Python would probably be equal with Java's. For me, Python's errors are the most infuriating thing I've ever experienced. Unlike Python, Java ignores whitespace (Which is a relief).


Pros/Cons

Java

Pros

  • Ignores Whitespace
  • Object-Oriented
  • Good choice for game development

Honestly, I have trouble finding pros for Java. Mainly, because I have VERY VERY little experience with Java.

Cons

  • Takes a while to compile hey that rhymed
  • Has a complicated syntax
  • Errors are hard to read
  • Code is hard to read

Python

Pros

  • Simple syntax
  • Runs smoothly
  • Errors are easier to read
  • Code is easy to read

Cons

  • Installing packages can SOMETIMES slow down compile time
  • Does not ignore whitespace
  • Hard for most programmers to switch over to ( due to the change in syntax and use of different variable names )

Conclusion

Well, to be honest, this whole thing was to get opinions on which language would be easiest to switch over to. As a C++ Programmer, my main goal is to use a language that supports more functions. If you can add on to the Pros/Cons of either one, I would appreciate that SO much!


Quick note

  • Please, respect the opinions of others and myself.

  • Try not to use language that can rub someone in the wrong direction and cause a misunderstanding. (try to be kind)

  • Please, do not send spam or say the same thing twice.

  • Try your best to acknowledge others' opinions that you agree with.

  • Have a great amazing day!

debates are fun

Comments
hotnewtop
RhinoRunner (864)

Python is better imho
Even though the package installs can take a while, if you copy-paste the module itself into another file and import that file it will have no loading time. You can also code more in less time do to things like no semicolons, curly bracket functions, and faster variable assigning.
Also java is kinda weird.

LoveFromSkyy (137)

Also java is kinda weird
True
@RhinoRunner

RhinoRunner (864)

@LoveFromSkyy Yeah if you are coming from C++ you should go for Java if you want familiarity and Python is you want to understand the most popular coding language. I recommend python but if you wanna go the easy way do Java

programmeruser (615)

In my opinion JS, C/C++ and Rust are superior to both of them.

LoveFromSkyy (137)

I can agree but out of Python and Java which one?
@programmeruser

EpicGamer007 (1755)

In my opinion, Java is better and I will list why.

Python:
Cons:

  • Not good dynamic typing in my opinion. Sometimes, you wont be able to tell if you declare a variable or edit a variable, and if you make a small spelling mistake, you may end up with a broken program.
  • Whitespace based, some people like this, but personally, it kind of infuriates me, it makes me unable to do code in one line, etc. whitespace based code can also go wrong really fast.
  • amazingly slow

Pros:

  • Easy package manager compared to java

Java:

Pros:

  • Not a steep learning curve. SO MANY online resources to learn and so many stackoverflow questions. (not trying to advertise, just trying to prove my point, but look, even i made one). Additionally, because its been around for a long time, there is a lot to build off of.
  • almost as fast as something created in C/C++

Cons:

  • Stupid package manager
  • a bit verbose

You claim that you are coming from C++.
The transition from C++ to java will not be as steep as it would be from C++ to python.

There are probably more but this is all i can think of off the top of my head.

Ultimately, the decision is yours

LoveFromSkyy (137)

Thats debatable in my opinion but shrug
@EpicGamer007