Hello World Program in Java
public class HelloWord{
public static void main(String arg[])throws Exception
{
System.out.println(“Hello Java World !”);
}
}
you have to save this program as HelloWorld.java
compile it with java compiler javac as follow
javac HelloWorld.java
Execute it as follow
java HelloWorld
Advertisements