Logo F2FInterview

Applet Interview Questions

Q   |   QA

The applet stub interface provides the means by which an applet and the browser communicate. Your code will not typically implement this interface.

A. name, height, width
B. code, name
C. codebase, height, width
D. code, height, width
Correct answer is D.

The following are the Applet’s information methods: getAppletInfo() method: Returns a string describing the applet, its author, copyright information, etc. getParameterInfo( ) method: Returns an array of string describing the applet’s parameters.

Following are the steps involved in Applet development:

  • Create/Edit a Java source file. This file must contain a class which extends Applet class.
  • Compile your program using javac
  • Execute the appletviewer, specifying the name of your applet’s source file or html file. In case the applet information is stored in html file then Applet can be invoked using java enabled web browser.

drawString( ) method is used to output a string to an applet. This method is included in the paint method of the Applet.

In order to link this F2FInterview's page as Reference on your website or Blog, click on below text area and pres (CTRL-C) to copy the code in clipboard or right click then copy the following lines after that paste into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code: