0
Sponsored Links


Ad by Google
To learn any programming language we start with Hello World program. After completion of my Hibernate tutorial series now planing to start series of java tutorial, and in this tutorial, I will show you how to create your first hello world program in java.

I am using eclipse to create this basic program, you just need to follow the below steps.
  1. Open your IDE
  2. Go to File->New->Java Project(provide the project name)
  3. Right click on created project->New->Class(give the name of class)
  4. It will open an editor, where you can write your code.
Below is the complete Hello World program.
HelloWorld.java
public class HelloWorld {
 public static void main(String[] args) {
  System.out.println("Hello World!!!");
 }
}

To run, right click on the class and select run as java application or click on run symbol on the menu bar.
Here, I have explained each part of the main method.

Sponsored Links

0 comments:

Post a Comment