Java ‘Hello World’ Program

A little program in Java for most beginner. Hello World!

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

2 Responses to Java ‘Hello World’ Program

  1. valik says:

    I would rather write like this:

    class MyFirstJavaProg {

    public static void main (String[] args) {
    System.out.println(”Hello World!”);
    }

    }

    +Class names begin always with a CAPITAL letter in JAVA;
    + Watch the programming style
    😉

  2. frozenade says:

    thanks for the suggestion. Yes it’s true, class name should be in capital letter at first. I’ve fixed it out!

    But, it’s still works, isn’t it?

    I am new in Java, I hope I can learn much from you..😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: