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;
3
4 //create a class
5 public class Hello{
6
7 //This will be the starting poing of our program
8 public static void main(String [] args){
9
10 //print Hello World to the screen
11 System.out.println("Hello World");
12
13 }
14 }