Can we pass parameters to an applet from HTML page to an applet? How?
Submitted by: AdministratorWe can pass parameters to an applet using <param> tag in the following way:
► <param name=”param1″ value=”value1″>
► <param name=”param2″ value=”value2″>
Access those parameters inside the applet is done by calling getParameter() method inside the applet. Note that getParameter() method returns String value corresponding to the parameter name.
Submitted by: Administrator
► <param name=”param1″ value=”value1″>
► <param name=”param2″ value=”value2″>
Access those parameters inside the applet is done by calling getParameter() method inside the applet. Note that getParameter() method returns String value corresponding to the parameter name.
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. |