1. Home
  2. Computing & Technology
  3. Python

What is Python?

From , former About.com Guide

7 of 7

How Does Python Compare to Java?

Both Python and Java are object-oriented languages with substantial libraries of pre-written code that can be run on almost any operating system. Their implementations, however, are very different.

Java is neither an interpreted language nor a compiled language. It is a bit of both. When compiled, Java programs are compiled to bytecode -- a Java-specific type of code. When the program is run, this bytecode is run through a Java Runtime Environment (jre) in order to convert it to machine code, which is readable and executable by the computer. Once compiled to bytecode, Java programs cannot be modified.

Python programs, on the other hand, are typically compiled at the time of running, when the Python interpreter reads the program. They can, however, be compiled to computer-readable machine code. Also, Python does not use an intermediary step for platform independence. Instead, platform independence is in the implementation of the interpreter.

Explore Python
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Python
  4. Beginning Python
  5. Python Compared - How Does Python Compare to Java?

©2009 About.com, a part of The New York Times Company.

All rights reserved.