Interviewer And Interviewee Guide

Java Applet Interview Question:

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

Submitted by: Administrator
We 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

Read Online Java Applet Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.