jQuery in Action, 3rd edition
The moose likes Jython/Python and the fly likes Java vs Python Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "Java vs Python" Watch "Java vs Python" New topic

Java vs Python

Saumyaraj Zala
Ranch Hand

Joined: Aug 06, 2012
Posts: 56

Hello Allen,
I am an java programmer and have heard a lot about python language. I would like to know advantages of python language and is there any similarity between python and java?

Why do we fall? So that we can learn to pick ourselves up.
Allen Downey

Joined: Sep 07, 2012
Posts: 25

Hi Saumyaraj,

The semantics of Python and Java are very similar, and most of the data structures in the Java collections are either built into Python or available in libraries.

The biggest differences are syntax and dynamic typing. Python uses a minimal syntax that many people find very readable (although it might take getting used to). And with dynamic typing, you don't have to declare variables. Development time tends to be faster in Python, but the compiler can't catch as many errors for you.

For me as a teacher, the biggest difference is that Python is a better first language. I see more of my students succeeding, and doing cooler things, than when I was teaching in Java.


All of my books are available from http://greenteapress.com
I agree. Here's the link: http://aspose.com/file-tools
subject: Java vs Python
It's not a secret anymore!