How to write hello world in java

Here we will learn to write Hello World Application in Java


/*
 * Here we will learn to Write Hello World Application.
 */
public class HelloWorldProgramme {

	/*
	 * Below Method is using STATIC KEYWORD to make this method Static so that JVM can call this method without 
	 * creating any object of the class. 
	 * 
	 * This method should not return any thing that is why void keyword is used in method signature.
	 * 
	 * This method accepts Array of Strings which can be used to pass values to this method.
	 * 
	 * This method signature is required to execute it.
	 */
	public static void main(String[] args) {

		System.out.println("Hello World!");
	}
}

	

Output of above program would be

           Hello World!
	
By | 2017-07-22T23:07:51+00:00 May 19th, 2013|Code Base|0 Comments

About the Author:

Leave A Comment