A. Japplet, Applet, Panel, Container, Componant, Object
A. Japplet, Applet, Panel, Container, Componant, Object
Which hierarchy is true about Inheritance of java.applet.Applet? a. b. c. d. JApplet , Applet , Panel ,Container,Componant,Object JApplet , Applet , Panel ,Container,Componant,Object JApplet , Applet , Panel,Componant ,Container, Object JApplet , Applet ,Container, Panel ,Componant,Object
Q2
import java.applet.*; import java.awt.*; class MyApplet extends Applet{ public void paint(Graphics g){ g.drawString("Hello Applet world",20,20); } } What is out of above program? a. Hello Applet world b. Compilation Error c. Exception d. Not loaded because class is non-public.
Q3.
What is use of archive attribute of applet tag in html. a. To load JAR. b. To load class file c. To load directive d. To load absolutes path import java.applet.*; import java.awt.*; public class MyApplet extends Applet{ public void paint(Object g){ g.drawString("Hello Applet world",20,20); } } What is out of above program? a. Hello Applet world b. Compilation Error c. Exception FormatException d. Exception NumberFormationException
Q4.
Q5.
Applet can use setDefaultCloseOperation method to close Applet. a. True b. False setTitle method used for giving the name of web page. a. False b. True What is alternative of <applet> tag ? a. <Object> b. <archive> c. <alt> d. <param> Javascript can access to applet? a. True b. False Which <applet> tag attribute can use to be called by javascript? a. name b. Alt c. src d. rel By which way more than two applet can communicate with each-other? a. appletContext() method. b. Codebase attribute c. <object> d. <path>
Q6.
Q7.
Q8.
Q9.
Q10.