Multiple choice web-design

You noticed that you cannot see the applet while the page is loading. What's the reason for it?

  1. incorrect file permission settings

  2. applets must register all its parameters with the JVM before it can function

  3. applets are protected

  4. applets are not registered

Reveal answer Fill a bubble to check yourself
B Correct answer
AI explanation

When a Java applet is embedded in a web page, the browser's plugin/JVM must first load the applet's class file(s), instantiate the Applet object, and call its lifecycle methods (init(), which reads the values declared in the HTML) before the applet can paint anything on screen. Until that initialization — including registering/reading all its declared parameters — completes, there is nothing for the JVM to render, so the applet area appears blank while the page is still loading. Of the given options, this initialization-before-render process is the only one that actually explains a temporary, loading-phase invisibility. Incorrect file permissions or an unregistered/protected applet would typically produce a persistent failure or a security exception rather than a delay that resolves once the page finishes loading, so they don't fit the "while the page is loading" framing of the question.