Write a Java Program to Print Hello World on Screen

By | January 18, 2017

Write a Java Program to Print Hello World on Screen

java-basic-programs

Hello World Program in Java

“Hello World” is passed as an argument to println method, you can print whatever you want. There is also a print method which doesn’t takes the cursor to beginning of next line as println does. System is a class, out is object of PrintStream class and println is the method.

Source Code:

 

OUTPUT ::

 

 

 

Leave a Reply