Saturday, 25 October 2014

PYTHON VS JAVA

PYTHON VS JAVA KEYPOINTS

Assalamualaikum and hye to everybody. Today i am going to post about comparison between Python VS Java. There are few differences between python and java. Both can be useful tools for modern developers. Python will be the best language to master because it is easy to learn. Begineer programmer usually get to learn the python first.


Dynamic vs Static Typing

*The huge different between them is the way python and java language handles variables.

Static typing- Need to define the type of variable when you declare and you will not able to change the type later in the program. It is implemented in Java.

Dynamic typing- Allow you to change the type of variable, for example changing character to integer. it is implemented in python. Which is ease the programmer.

Easy vs Hard

Most programmers agree that python is easier compared to java. But we have to admit that java is more powerfull language because most of the application can be develop. Android for example.

Speed

Python generally run slower than Java. But the reason why python is faster is because it does not have much syntax, so it will takes shorter time to develop. Besides Python do not need much time to spend on declaration. But Java needs variable declaration for examples A and B need to be declare before it is compile.

Examples of simple code

Java                                                                                        Python





No comments:

Post a Comment