In this post we will learn to print "Hello World!" using Java programming language. In order to print the specified message in the output screen we write following code snippet.

public class Hello {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		System.out.println("Hello World!");
	}

}

In Java programming at first we need to define a class likewise we defined Hello class in the above program then we get to the main function which is shown by the code snippet as below.

public static void main(String[] args){
}

After that we write the statement System.out.println() which carries the specified message to be displayed in the output screen. 

Final output for the above program is shown below.

Hello World!