Applet Interview Question and Answers

9. What is the sequence of interpretation, compilation of a java applet?
 
  • A java program is first compiled to bytecode which is stored in a .class file.
  • This file is downloaded as an applet to a browser which then interprets it by converting it into machine code appropriate to the hardware platform on which it is running.
 
Your Name Your Email-ID
Your Answer
10. Which method is called by applet class to load an image?
  getImage(URL object, filename) is used for this purpose.
 
Your Name Your Email-ID
Your Answer
11. How does applet recognize the height and width?
  Using getParameters() method.
 
Your Name Your Email-ID
Your Answer
12. What is the relationship between clipping and repainting?
  When a window is repainted by the AWT painting thread, it sets the clipping regions to the area of the window that requires repainting.
 
Your Name Your Email-ID
Your Answer
1234 Page 3 of 4