1,2不太清楚,好像是设计模式里的4,init()小程序初始化 首先执行,通常可以在该方法中完成主页向applet传递参数
start()小应用程序开始 完成init()后执行,用户离开又返回时调用start(),但不调用init()
stop()小应用程序结束 和start()对应
destroy()小应用程序销亡 浏览器关闭时才调用,与finalize不同
start()小应用程序开始 完成init()后执行,用户离开又返回时调用start(),但不调用init()
stop()小应用程序结束 和start()对应
destroy()小应用程序销亡 浏览器关闭时才调用,与finalize不同
3选C 4选C
public class BasicApplet extends Applet {
public void init() {
// Called once by the browser when it starts the applet
}
public void start() {
// Called whenever the page containing this applet is made visible
}
public void stop() {
// Called whenever the page containing this applet is not visible
}
public void destroy() {
// Called once when the browser destroys this applet
}
public void paint(Graphics g) {
// Called whenever this applet needs to repaint itself
}
}第五题不清楚!我回去看看书!
第五题选D!
4,D
5,D
有什么问题,应该很明显
我认为应该选
3:C
4:C
5:D