In an applet class definition, the----------method takes the place of the constructor.
- Apaint();
- Bmain();
- Cinit();
- Drun() ;
init() is called once after the applet is created, so it does the constructor-like setup.
MCQs, short and long questions from lecture 20.Lecture 20 ki MCQs, short aur long sawal.
5 MCQs · 2 short questions · 5 MCQs from past papers5 MCQs · 2 short sawal · 5 MCQs past papers se
In an applet class definition, the----------method takes the place of the constructor.
init() is called once after the applet is created, so it does the constructor-like setup.
Which of the following method of an Applet is called every time when page is minimized?
stop() is called when the applet page is left or the browser is minimized.
Which of the following method takes the place of constructor in an Applet?
init() does the one-time setup of an applet.
Which of the following applet method is called once in applet life cycle?
init() runs once when the applet is loaded; start, paint and stop can run many times.
Which of the following is NOT true for applets?
The applet security sandbox blocks access to the client's file system.
No MCQs match this filter.Is filter mein koi MCQ nahi.
Explain why JAVA applets are better than Active-X components?
Applets are downloaded as platform-independent bytecode and run on any browser/OS with a JVM, while ActiveX controls are native Windows binaries. Applets also run in a security sandbox (no local file access etc.), whereas ActiveX controls get full access to the machine, so applets are safer.
If we will not give width and height in applet tag then which one will get true? - Applet will not run - Applet will run but not visible - Applet will run and visible
The applet will run but will not be visible. width and height give the applet's display area; without them the area has no size, so nothing is shown on the page.
No long questions added yet.Abhi koi long sawal shamil nahi.