Question: what are the two types of java programs?
Answer: Java programs are written in two forms: applications and applets. Java applications are run by invoking the Java interpreter from the command line and specifying the file containing the compiled application. Java applets are invoked from a browser.