You are on page 1of 1

Python vs JAVA

Java AND PYTHON

Statically Typed 1.All variable names (along with their types)

must be explicitly declared. Attempting to assign an object of Dynamically Typed1.No need to declare anything. An

the wrong type to a variable name triggers a type assignment statement binds a name to an object, and the

exception.2.Type casting is required when using container object can be of any type.2.No type casting required

objects. when using container objects

Verbose Contains more words Concise Express much in limited words

Less Compact Compact

Uses braces for structuring code Uses Indentation for structuring code

You might also like