Sample Questions Best site for GRE, LSAT, SAT, GMAT, TOEFL, CCNA, CCSA and interview sample questions  

Technical Sample Questions : C |  C++ |  Oracle |  Java | Unix |  Operating Systems |  Data Structure

Java Sample Questions ›› Java Applet Sample Questions

Technical Java Sample Questions : Java Applet Sample Questions

There is a difference between java applet questions and java database sample questions. Also, the core java sample questions are different from both of these. Here we have provided here technical java applet sample questions for the reference of the student.

  1. What is an Applet? Should applets have constructors?

    Answer: Applets are small programs transferred through Internet, are automatically installed and run as a part of the web-browser. Applets implements functionality of a client. Applet is a dynamic and interactive program that runs inside a Web page displayed by a Java-capable browser. We don't have the concept of Constructors in Applets. Applets can be invoked either through the browser or through Appletviewer utility provided by JDK.

  2. What are the Applet's Life Cycle methods? Explain them?

    Answer: Following are methods in the life cycle of an Applet:

    • init() method: It is called when the applet is first loaded. This method is called only once in the entire cycle of the applet. This method usually intializes the variables to be used in the applet.
    • start( ) method: It is called each time the applet is started.
    • paint() method: It is called when the applet is minimized or refreshed.

    This method is also used for drawing different strings, figures, and images on the applet window.

    • stop( ) method: It is called when the browser moves off the applet's page.
    • destroy( ) method: It is called when the browser is finished with the applet.

  3. What is the sequence for calling the methods by AWT for applets?

    Answer: 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()

We hope that the sample questions provided above were of some help to you. You can also refer to the J2EE Sample Questions for further help.

Sample Test Questions
GRE Sample Questions
CAT Sample Questions
GMAT Sample Questions
TOEFL Sample Questions
ACT Sample Questions
SAT Sample Questions
LSAT Sample Questions
PSAT Sample Questions
MCAT Sample Questions
PMP Sample Questions
GED Sample Questions
ECDL Sample Questions
DMV Sample Questions
CCNA Sample Questions
MCSE Sample Questions
Network+ Sample Questions
A+ Sample Questions
Technical Sample Questions
WASL Sample Questions
CISA Sample Questions

Other Sample Questions
Sample Interview Questions
Sample Teacher Interview Questions
Sample Citizenship Questions
Accuplacer Sample Questions
Science Bowl sample Questions
Driving Test Sample Questions
Sample Survey Questions Sample Essay Questions
Sample Behavioral Interview Questions

Copyright © 2004-2013, Best BSQ. All Rights Reserved.