Applet Interview Question and Answers
5. | What is the difference between applications and applets? |
---|---|
|
|
6. | When is update method called? |
---|---|
|
|
7. | How will you communicate between two applets? |
---|---|
By creating URL objects, URLConnection object and getting InputStream, OutputStream Using getInputStream(), getOutputStream(). | |
8. | How do I load a serilalized applet? |
---|---|
Instead of specifying the CODE attribute of an <APPLET OBJECT = TheApplet.ser WIDTH =300 HEIGHT = 300 > This allows you to pre-initialize your applet to some saved state, instead of having to reinitialize your applet each time it is loaded. |
|