Top 20+ Advanced Java Applet Interview Questions 2020-21 - 1
Question: 1
What is an applet?
Applet is a dynamic and interactive program that runs inside a web page displayed by a java capable browser.
Question: 2
What is the lifecycle of an applet?
The lifecycle of an applet:
init() method – can be called when an applet is first loaded.
start() method –can be called each time an applet is started.
paint() method – can be called when the applets is minimized or maximized.
stop() method – can be used when the browser moves off the applet’s page.
destroy() method – can be called when the browser is finished with the applet.
Question: 3
What is the difference between applications and applets?
Application must be run on local machine whereas applet needs no explicit installation on local machine.
Application must be run explicitly within a java compatible virtual machine where as applet loads and runs itself automatically in a java enabled browser.
Application starts execution with its main method whereas applet starts execution with its init method.
Application can run with or without graphical user interface whereas applet must run within a graphical user interface.
Question: 4
How will you communicate between two applets?
By creating URL objects, URLConnection object and getting InputStream, OutputStream Using getInputStream(), getOutputStream().
Question: 5
What is the order of method invocation in an Applet?
init(),
start(),
paint(),
stop(),
destroy()
Cloze Test Questions and Answers Pdf More
Cloze Test Questions for Competitive Exams 2026-2027 More
Cloze Test Questions for SBI PO Exam 2026-2027 Pdf More
Computer Fundamentals Tutorials 2026-2027 Pdf More
Verbal Ability Questions and Answers Pdf 2026-2027 More
100+ Problems on Trains Questions for Bank Exams More
1000+ Free Aptitude Test Questions and Answers Pdf More
1000+ R.C.C. Structure Designs MCQ Questions and Answers Pdf More
List of Important National Highways in India Pdf More
1000+ SBI Computer Question Paper with Answers Pdf More