Java Applet Interview Questions and Answers
Question: Can applets on different pages communicate with each other?Answer: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:
|
Is it helpful?
Yes
No
Most helpful rated by users:
- What is an applet?
- What is the difference between an Applet and an Application?
- How will you establish the connection between the servlet and an applet?
- What is an Applet? Should applets have constructors?
- How will you initialize an Applet?