Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Java Applet Interview Questions and Answers

Ques 6. How to insert your applets into FrontPage?

Ans. 1. Place the .class file in the directory containing the HTML document into which you want to insert the applet.
2. Copy the <applet>...</applet> tag from your applet implementation or examples to the clipboard.
3. In FrontPage select the \"HTML\" tab from the lower left hand corner.
4. Paste the <applet>...</applet> tag in an appropriate place between the <body> and </body> tags. You\'ll find a gray box with the aqua letter \"J\" in the \"Normal\" view indicating the the applet tag has been inserted.
5. To see the applet appearance select the \"Preview\" tab.

Is it helpful? Add Comment View Comments
Ques 7. In our URLs and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
Ans. Since 2.00 version our applets support an user-defined delimiter for the menu arguments. To modify the default delimiter add the following parameter (you can use any character as a delimiter): <param name="delimiter" value="~"> and use it within "menuItems": <param name="menuItems" value=" {Home~http://www.globalguideline.com.com/index.php} {Features, Setup~http://www.globalguideline.com/} ">
Is it helpful? Add Comment View Comments
Ques 8. What is the order of method invocation in an Applet?
Ans. ► public void init() : Initialization method called once by browser.
► public void start() : Method called after init() and contains code to start processing. If the user leaves the page and returns without killing the current browser session, the start () method is called without being preceded by init ().
► public void stop() : Stops all processing started by start (). Done if user moves off page.
► public void destroy() : Called if current browser session is being terminated. Frees all resources used by applet.
Is it helpful? Add Comment View Comments
Ques 9. What are the Applets Life Cycle methods? Explain them?
Ans. methods in the life cycle of an Applet:

► init() method - called when an applet is first loaded. This method is called only once in the entire cycle of an applet. This method usually intialize the variables to be used in the applet.
► start( ) method - called each time an applet is started.
► paint() method - called when the applet is minimized or refreshed. This method is used for drawing different strings, figures, and images on the applet window.
► stop( ) method - called when the browser moves off the applet�s page.
► destroy( ) method - called when the browser is finished with the applet.
Is it helpful? Add Comment View Comments
Ques 10. What is the sequence for calling the methods by AWT for applets?
Ans. When an applet begins, the AWT calls the following methods, in this sequence:

► init()
► start()
► paint()

When an applet is terminated, the following sequence of method calls takes place :

► stop()
► destroy()
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2017 WithoutBook