Q:

Write a Java Program to Print Hello World on Screen

belongs to collection: Java Basic Solved Programs

0

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.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Source Code:

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

OUTPUT ::

Hello World!

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Java Basic Solved Programs

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Write a Java program to Swap two numbers using thi... >>