Java and Applets
Applets are small programs made in Java. They are embedded with web pages and executed by a browser.
Applets are programmed in Java and are pre-compiled. That’s why the way they work differ from that of script languages, such as Javascript. Applets are harder to program than scripts in Javascript and they demand some basic knowledge of Java language.
The main advantage of using applets consists that they are less dependents from browser, comparing to scripts in Javascript. They also are independent from the computer operational system where they are running. Besides, Java is more powerful than Javascript. Hence, the number of applications that can be made with applets is bigger.
Let’s now talk about some disadvantages. Applets are slower to process and they neither interact with all components of the page nor have access to them. That’s why we can’t use applets to directly do some actions, such as opening secondary windows, controlling frames, formularies, layers, etc.