Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Java%20Applet%20Interview%20Questions%20and%20Answers

Question: Can we pass parameters to an applet from HTML page to an applet? How?
Answer:

We can pass parameters to an applet usingtag 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.

Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook