Java Programming | Hello World

Introduction

The java programming is similar to the c++. with little differences…Java is truly amazing language. Lets discover it…. The program is of Hello world thats beginning of every language. This Program is given below…Go enjoy the program. Lets begin……

Program of Hello World in java.

// the name of our class its public
public class helloworld {
//void main
public static void main (String[] args)
{
//print function
System.out.println(“Hello World.”);
}
}

Output

Hello World.

How it works

  1. The program just prints hello world.

Extending it

The program can be extended by using your name in place of world. Or you can give the message.

Explanation.

  1. Declare the class as public
  2. Add the void main function
  3. Add system.out.println() function with the message in it.

At the end

You learnt creating the Java program in Hello world. So now enjoy the program.

Please comment on the post and share it.
And like it if you liked.

Advertisements

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