What is the role of the `init()` method when converting a Java application to an applet?
The `init()` method is used to initialize the applet, setting up necessary resources, and is called when the applet is first loaded.
Exactly! The `init()` method is used to initialize any necessary resources when the applet is loaded.
Can you explain how you would manage resources (like opening files or initializing variables) within the `init()` method?