How To Write the First Hello World Program in Java

Here we have your very first Hello World Java example Program.

The First program you write in any programming language will introduce you to the syntax of that programming language.

normally we write Hello World program where we print Hello World string to the screen. you can print whatever you want.

Example Java Program

 1 //Create a package
 2 package LearningJava;
 4 //create a class
 5 public class Hello{
 7      //This will be the starting poing of our program
 8     public static void main(String [] args){
10          //print Hello World to the screen
11          System.out.println("Hello World");
13     } 
14 }