Home » Blog » Printing Hello Word In Java – Beginner

Printing Hello Word In Java – Beginner

In this tutorial, you can learn the simple program that will print Hello World in java. It will give insight of how the flow of the program works internally.

Concept With Example And Description

Here, print is the class which contain main() method. System is the class in java.lang package. The out is static member of the System class. The println() is the method of java.io.PrintStream package.

This method is overloaded to print message to output destination, which is typically a console or file.

public class print 
{ 
	public static void main(String args[]) 
	{ 
		System.out.println("\n***Print Hello World***"); 
		System.out.println("\nHello World"); 
	} 

Here is the OutPut.

***Print Hello World***

Hello World

Process finished with exit code 0

Leave a Reply

Your email address will not be published.