Monday, November 10, 2008

Getting Started


It has been a while after my previous post as I'm quite busy lately. Now, let's us get back to our business.



Below is a java sample code for the traditional Hello World program. Basically, the idea behind this Hello World program is to learn how to create a simple java program, compile and run it. To create your java source code you can use any text editor.



public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}


Output:
Hello World


Java Main Method Declarations

  1. public static void main(String[] args){}

  2. public static void main(String []args){}

  3. public static void main(String args[]){}

  4. static public void main(String[] args){}

  5. public final static void main(String[] args){}

  6. public static void main(String... args){}


All the 6 above are valid main method's.

Saturday, October 25, 2008

Not Only KFC, Java Needs Mascot Too


Say hi to Duke, the Java mascot.

Friday, October 24, 2008

A Date With Who?

As we usually date people to know him or her better, I started this blog so that we (whoever that are interested in Java) could get to know this "Java" person better.


What the heck is Java anyway? For starter, Java is an object-oriented programming language developed by Sun Microsystems. Period.


I'll try to post whatever that related to Java in this blog. Thanks for the support. Now, let's have a marvellous date with this wonderful gal!