Write a Java Program to Print Hello World on Screen

By | 18.01.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:

public class Hello 
{
  public static void main(String[] args) 
   {
    System.out.println("Hello World!");
   }
}

 

OUTPUT ::

 

Hello World!

 

 

3.3 8 votes
Article Rating
Category: Basic Programs Java Programming Tags:

About Tunde A

My name is Tunde Ajetomobi, a Tech Enthusiast and Growth Hacker. I enjoy creating helpful content that solves problem across different topics. Codezclub is my way of helping young aspiring programmers and students to hone their skills and find solutions on fundamental programming languages.

Subscribe
Notify of
guest

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Yash Shyamsukha

Noice