Java programs can be used in two ways
Stand alone EXEs
Applets which operate only within a browser
The Java compiler creates a file that contains Java bytecodes, which in turn are interpreted
by the interpreter on each specific Java platform.
Java source code is saved in a .java text file. The compiled bytecode is saved to a .
Source code consists entirely of classes. Program starts in a
which has a
Source code lines end in semi
'main statements go here
myProgram.java (source code)
It is the .
file that is interpreted by the Java interpreter on a specific platform.
Java Platform consists of
Java Virtual Machine (interpreter)
Java API are grouped into
which contain related classes and interfaces.
A Java applet is a Java program which adheres to specific conventions that allow it
to run within a Java
enabled browser. Java applets can also be viewed in a free
program called appletviewer.
Java Development Kit from Sun
a few applets