Java Applets Interview Questions and Answers

What is an applet? How does applet differ from applications? - A program that a Java enabled browser can download and run is an Applet...
How to implement an applet into a web page using applet tag - To view an applet in the browser, following steps need to be followed:...
What are the attributes of Applet tags? - height: Defines height of applet, width: Defines width of applet...
How can we determine the width and height of my applet? - Applet tags have attributes width and height with which we can determine their dimensions...
How to set the background color within the applet area - You can set the background color of an applet in the following manner:..
Methods that controls an applet’s life cycle - Life Cycle of an Applet: Basically, there are four methods in the Applet class on which any applet is built...
Methods that control an applet’s on-screen appearance - The paint() method is called in situations the applet window being overwritten by another window or uncovered or the applet window being resized...
How to read information from the applet parameters - The getParameter() method can be used within the init method to access the parameter data. It takes the parameter name as an argument...
Provide an example where two applets communicate each other...
Explain how to play sound in an applet import java.applet.*;.....
How to play audio in a stand alone application...
Difference between an Applet and an Application - An applet runs with the control of a browser, where as an application runs standalone...