Wednesday, 1 October 2014

Difference between Python and Java



Java
Python
Runtime Speed
Faster
Slower
Type of Language
- Statically typed language
-Dynamic typed language

Use of Variable
- Need to define the type of each variable
- Cannot write any code without define a class
- Do not need to declare any variable types as in java.

public class Main
{
    public static void main (String[] args)
    {System.out.println("Hello World!");
    }
}
print "Hello, world!"







The Advantages of Python

1.      Readability- The syntax is clear. Beginners can easily understand the code.
2.      It is Straightforward to Get Support- The community of Python offers good amount of support to the users. Python code is freely accessible for everyone and therefore millions of developers are functioning hard to find bugs and craft patches to fix all those bugs. Several individuals are crafting fresh enhancements to the language and sending them for approval.
3.      Quick to Learn -Simple to learn as its source code resembles the pseudo code.
4.      Quick to Code 
5.      Reusability Python motivates the program reusability by carefully implementing packages and modules.
6.      Portability- Python not just runs on multiple systems, but it has similar interface on different platforms. We can test Python program on  Linux operating system, and upload it easily to a Windows system.

7.      Object-oriented Programming 

1                

No comments:

Post a Comment