Monday, August 29, 2005

Hello World

My very first blog entry on PuneJava blog. Nothing much to write here today. I hope to contribute something worth reading here soon :-).

Here is something funny in Java. Try this program

public class FunnyOne
{
public static void main(String args[]) {
int i = 0;
System.out.println("i = " + i);
i = i++;
System.out.println("i = " + i);
}
}

Give it a try and take a look at the output. If the output is not what you expected and you know why, please comment this blog entry with the explaination.

Or I will try to explain this in my next blog entry.

Until then, Ciao !

Technorati Tags:
Blogs linking to this article

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home