Jan K. Labanowski: "Tomcat, servlets, JSPs and other friends"

Java continued

The Hello Word in Java is:
public class HelloWorld {
   public static void main (String [] args) {
       System.out.println("Hello World");
   }
}
You compile it as:
   javac HelloWorld.java
and run it as:
   java HelloWorld
and as a result, this Java application will respond with a string HelloWorld in your terminal window.