Applets
Q- What method name can you use from the applet to read a String passed to an applet via the
tag?
A -getParameter
Q- How to embed an applet class named Q56 into a Web page?
A - The
applet code=Q56.class width=100 height=100
Q -How can you retrieve a circle’s radius value that’s passed to an applet?
A -
public void init() {
String s = getParameter("radius");doSomethingWithRadius(s);
}
tag?
A -getParameter
Q- How to embed an applet class named Q56 into a Web page?
A - The
applet code=Q56.class width=100 height=100
Q -How can you retrieve a circle’s radius value that’s passed to an applet?
A -
public void init() {
Comments
Post a Comment