MeshWorld India LogoMeshWorld.
ProgramJAVA1 min read

Write a Program to print Hello, World! in JAVA

Vishnu
By Vishnu
Write a Program to print Hello, World! in JAVA

A program to print “Hello, World!” in JAVA

Working example

/*
 * FileName : "HelloWorld.java".
 */
class HelloWorld
{
  // Program execution begins with main() method
  public static void main(String args[])
  {
    System.out.println("Hello, World!");
  }
}

Output

 Hello, World!
Share_This Twitter / X
Vishnu
Written By

Vishnu

Founder & Principal Architect at MeshWorld. Senior engineer and instructor specializing in AI agent systems, scalable web architecture, and modern development workflows.

Enjoyed this article?

Support MeshWorld and help us create more technical content