Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Java Applet Interview Questions and Answers

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

Ans. 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();

Is it helpful? Add Comment View Comments
Ques 17. Which classes and interfaces does Applet class consist?
Ans. Applet class consists of a single class, the Applet class and three interfaces: AppletContext, AppletStub, and AudioClip.
Is it helpful? Add Comment View Comments
Ques 18. What is AppletStub Interface?
Ans. The applet stub interface provides the means by which an applet and the browser communicate. Your code will not typically implement this interface.
Is it helpful? Add Comment View Comments
Ques 19. What tags are mandatory when creating HTML to display an applet?
Ans. code, height, width.
Is it helpful? Add Comment View Comments
Ques 20. What are the Applets information methods?
Ans. 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.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2020 WithoutBook