Python Vs Java:
Components can be developed in Java and combined to form applications in Python. Let’s see some of the differences in these two popular languages:
TOPIC | Java | Python |
Compilation process | Python is an interpreted programming language | Java is an compiled programming language |
Code Length | Longer lines of code as compared to python. | 3-5 times shorter than equivalent Java programs. |
Syntax Complexity | Define particular block by curly braces,end statements by ; | No need of semi colons and curly braces ,uses indentation |
Ease of typing | Strongly typed, need to define the exact datatype of variables | Dynamic, no need to define the exact datatype of variables. |
Speed of execution | Java is much faster than python in terms of speed. | Expected to run slower than Java programs |
Multiple Inheritance | Multiple inheritance is partially done through interfaces | Provide both single and multiple inheritance |
No comments:
Post a Comment