热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

Java Applet 面试题与答案

问题 1. What is an applet?

Applet is a program which can get downloaded into a client environment and start executing there.

这有帮助吗? 添加评论 查看评论
 

问题 2. What is an Applet? Should applets have constructors?

  • Applets are small programs transferred through Internet, automatically installed and run as part of 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 browser or through Appletviewer utility provided by JDK.

这有帮助吗? 添加评论 查看评论
 

问题 3. How will you initialize an Applet?

Write my initialization code in the applets init method or applet constructor.

这有帮助吗? 添加评论 查看评论
 

问题 4. How to insert your applets into FrontPage?

1. Place the .class file in the directory containing the HTML document into which you want to insert the applet.
2. Copy the ... 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.

这有帮助吗? 添加评论 查看评论
 

问题 5. What is the order of method invocation in an Applet?

  • 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.

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。