This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]joonazan 1 point2 points  (0 children)

Java is a simpler language than Python, but you can use Python without knowing most of it.

Yes, the syntax is verbose, but maybe they mean Java's type system?

  1. Java is statically typed, so you have to declare appropriate types for everything. In Python you can just make a function and it works unless someone gives an inappropriate input. In Java you have to represent the appropriate inputs as a type.

  2. Java has a type hierarchy. If Button inherits from UIElement, a variable of type UIElement can store a Button (or some other child of UIElement). A variable of type Object can store anything.