[OT] Is there any tutorial for those who learn Java after Python ;-)

D-Man dsh8290 at rit.edu
Tue Jun 26 13:54:12 EDT 2001


On Tue, Jun 26, 2001 at 09:23:20PM +0400, Roman Suzi wrote:
| 
| I want to learn Java (Not that I am dissatisfied with Python,
| but this seem to be "the must" to find a job ;-)

I would recommend using Jython to start -- you can do useful stuff
using your Python knowledge and use the Java libraries.  It is really
cool.

| And some simple things makes me wonder:
| 
| public class JavaRules {
|   public static void main(String args[]) {
|       System.out.println(2+2+"a");

This line is a type error.

|       System.out.println("a"+2+2);

Here is a little bit of Java's magic -- the java.lang.String being
first, it's '+' operator converts the other objects to a string, then
concatenates them.

|   }
| }
| 
| Quick quiz: what this program will output?
| 
| 1. syntax/compilation error (Java is strict typed!!!)
| 2. 4aa22
| 3. 4aa4
| 4. 22aa22
| 5. 22aa4
| 
| Your answer: [ ]
| 
| *
| 
| The question is, has anybody tried to write tutorial (even joking!) for
| those who wants to learn Java _after_ Python?

No, but you could start with the one at http://java.sun.com.  I admit
that you won't enjoy it nearly as much as Python :-).

-D

PS.  if you have some Java questions, email me privately because this
     list isn't about Java <wink>





More information about the Python-list mailing list