During the installation process, you encountered your first program in Java. The program simply outputs the words "Hello World". In this tutorial, we'll explain what each line of the code does in the "Hello World" program.
The Hello World program
Let's take a look at the program:
// Program to display "Hello World"
import java.util.*; // importing all packages of java present in java.util
class Hello // Declaration of class with name "Hello"
public static void main(String args)
System.out.println("Hello World"); // print "Hello World" (and go to