Skip to main content

Command Palette

Search for a command to run...

Hello World Program

Updated
Hello World Program
M

IIIT - N Software Geek. Startup Enthusiast. Build for the Future.

Java Code :

public class Main{
    public static void main(String[] args){
        System.out.println("Hello world");
    }
}
  • public class {.....} Every Java Application must start with the class definition.

  • So the entry point for the java application is the main.

  • public static void main(string[] args{......} this is the main method.

  • Every Application in java must contain the main method.

  • System.out.println("Hello World"); Which helps to print the output on the screen.

Output:

Hello World Program Implementation in C++ and Python

More from this blog