1. Technology

What is Python?

By

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.

  1. About.com
  2. Technology
  3. Python
  4. Beginning Python
  5. Python Compared - How Does Python Compare to Java?

©2014 About.com. All rights reserved.