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

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

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

面试准备

Java Applet 面试题与答案

问题 16. Can applets on different pages communicate with each other?

Use the getSize() method, which the Applet class inherits from the Component class in the Java.awt package. The getSize() method returns the size of the applet as a Dimension object, from which you extract separate width, height fields. The following code snippet explains this:

Dimension dim = getSize();
int appletwidth = dim.width();
int appletheight = dim.height();

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

问题 17. Which classes and interfaces does Applet class consist?

Applet class consists of a single class, the Applet class and three interfaces: AppletContext, AppletStub, and AudioClip.

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

问题 18. What is AppletStub Interface?

The applet stub interface provides the means by which an applet and the browser communicate. Your code will not typically implement this interface.

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

问题 19. What tags are mandatory when creating HTML to display an applet?

code, height, width.

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

问题 20. What are the Applets information methods?

The following are the Applet's information methods: getAppletInfo() method: Returns a string describing the applet, its author, copyright information, etc. getParameterInfo( ) method: Returns an array of string describing the applet's parameters.

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

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

版权所有 © 2026,WithoutBook。