Java and Python are the two languages I use most, think about their characteristics and combine the content of online summary.
features of Java:
1. Compiled language, the compiler generates a. class file consisting of bytecode, which is then run by a Java virtual machine;
2. The static type language, determines the data type in the compilation period, the variable first declares to use;
3. Strongly typed language, once a variable is specified as a data type, it is the same type if no coercion type conversion is made;
4. object-oriented language, must object-oriented programming, variables and functions have a attribution class.
the characteristics of Python:
1. Interpreted language, interpreter language programs do not need to compile, the runtime will be translated into machine language, but the Python program in the running process will automatically generate bytecode files. PYC, improved Python performance;
2. Dynamic type language, the use of variables need not be declared, at the time of assignment, according to the value type automatically determined;
3. Strongly typed language, once a variable is specified as a data type, it is always this type (with Java) if no coercion type conversion is made;
4. Object-oriented language, which does not force object-oriented programming, can handle logic without having to be put into a class in a separate function module.