Longer lines of code as compared to python public class.
public static void main(String args)
At the end of the statement if you miss semicolon it gives an error. In java you must define a particular block using curli braces without id code doesn’t work.
In python, you don’t need a semicolon to end. In this, you never have seen a sight of curli braces but indentation also improves the readability of code.
In java, you must declare the type of data.
Python codes are dynamic typed. This means that you don’t need to declare type of variable this is known as duck typing.
In terms of speed, java is faster than python. Whenever in projects speed matters the java is best.
It is slower because is an interpreter and also it determines the type of data at run time.
Due to the high popularity of java, JVM is almost everywhere.
Python is also portable but in front of java, python is not popular.
JDC is the most popular and widely used to connect with the database.
Python’s database access layers are weaker than java’s JDBC. This is why it rarely used in enterprises.
->EASY TO USE
java is not easy to use as compared to Python because there is no dynamic programming concept and codes are longer than python.
Python codes are shorter than Java. Python follows dynamic programming python codes not only easy to use but also easy to understand because of indentation.
Java’s history in the enterprises and its slightly more verbose coding style mean that java legacy system is typically larger and more numerous than Python’s
Python has less legacy problem so the organisation finds difficulty for the script to copy and paste code.