Tech moves fast! Stay ahead of the curve with Techopedia!
Join nearly 200,000 subscribers who receive actionable tech insights from Techopedia.
An applet container is the environment that runs a Java applet and provides secure applet execution. Examples include Web browsers and the applet viewer in Java's software development kit (SDK).
The applet container uses the sandbox security model, preventing applets from accessing system resources and causing harm. Running an applet in an applet container ensures security and portability.
The applet requests required resources directly from the application server. Note: The applet container does not serve as a mediator between the server and applet.
An applet container follows the steps below when executing an applet:
When the browser closes, the applet container calls the destroy() method, which releases allocated resources and lets the applet know that it is no longer required.