Applet Interview Question and Answers

13. When do you use codebase in applets?
  When the applet class file is not in the same directory, codebase is used.
 
Your Name Your Email-ID
Your Answer
14. How does applet recognize the height and width?
  Using getParameters() method.
 
Your Name Your Email-ID
Your Answer
15. Why does it take so much time to access an Applet having Swing components the first time?
 
  • Because behind every swing component are many Java objects and resources.
  • This takes time to create them in memory. JDK 1.3 from Sun has some improvements which may lead to faster execution of Swing applications.
 
Your Name Your Email-ID
Your Answer
16. What is the order of method invocation in an Applet?
 
  • init()
  • start()
  • paint()
  • stop()
  • destroy()
 
Your Name Your Email-ID
Your Answer
1234 Page 4 of 4