Difference Between Applet and Application




Applet Application
1. Applets are small Java programs that are not full-featured. 1. Applications are stand-alone programs that are full-featured.
2. Applet don't use the main() method for initiating the execution of the code.2. Application use the main() method for initiating the execution of the code.
3. Applets can't read from or write to the files on the local computer. 3. An application can read from or write to the files on the local computer.
4. In applet, It requires Graphical User Interface (GUI). 4. In application, It doesn't require Graphical User Interface (GUI).
5. Applets can't communicate with other servers on the network.5. The application can communicate with other servers on the network.
6. In applet, It only requires web-browser such as Google Chrome, Mozilla Firefox , etc for execution6. In application, It requires Java Runtime Environment (JRE) for execution.
7. It requires less security because applications are trusted programs. 7. It requires high security because applets are untrusted programs.

Recommended Posts:

Advanced Java
    1. Java Applet
    2. Applet Life Cycle in Java
    3. Difference Between Applet and Application
    4. Creating an Executable Applet in Java
    5. Displaying Numerical values in Applet
    6. An Applet Program to Add Two Numbers
    7. Event Handling in Applet
    8. AWT Event Classes
    9. AWT Graphics Class
    10. Draw a line and rectangle in Java Applet
    11. Draw Circles and Ellipses in Java Applet
    12. Draw a Polygon in Java Applet
    13. AWT Hierarchy | AWT Package
    14. Swing in Core Java