How to Compile and Run Java Program
In our previous article, We will learn The Java Basic Syntax. In this article, we will make our First program in Java (Hello World), We will learn How to Compile and Run Java Program in your machine. The most basic syntax, keywords, special words and the working environment of Java.
Enough background! Let’s finish off this day by creating a real Java program. In Java you either can make a stand-alone Java application or an applet that you can view in either in the applet viewer (part of the JDK) or in a Java-capable browser. Although our first program is extremely simple, it will give you an idea of what a Java program looks like and how to compile and run it.
Java Applets: Applets, are Java programs that are downloaded over the World Wide Web and executed by a Web browser on the reader’s machine. Applets depend on a Java-capable browser in order to run.