How will you communicate between two Applets?
Submitted by: AdministratorThe simplest method is to use the static variables of a shared class since there's only one instance of the class and hence only one copy of its static variables. A slightly more reliable method relies on the fact that all the applets on a given page share the same AppletContext. We obtain this applet context as follows:
AppletContext ac = getAppletContext();
AppletContext provides applets with methods such as getApplet(name), getApplets(),getAudioClip, getImage, showDocument and showStatus().
Submitted by: Administrator
AppletContext ac = getAppletContext();
AppletContext provides applets with methods such as getApplet(name), getApplets(),getAudioClip, getImage, showDocument and showStatus().
Submitted by: Administrator
Read Online Java Applet Job Interview Questions And Answers
Top Java Applet Questions
☺ | What is the order of method invocation in an Applet? |
☺ | Which method is used to output a string to an applet? Which function is this method included in? |
☺ | When is update method called? |
☺ | What is an Applet? Should applets have constructors? |
☺ | What tags are mandatory when creating HTML to display an applet? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |