Join our Telegram Channel

8000+ STATIC GK MCQs for SSC/ Railway/ PSC
1000 POLITICAL SCIENCE MCQS | EBook
Get 22 nos. GK EBooks | Combo Pack
Current Affairs Monthly Magazine -Subscribe Now!
1000 BIOLOGY MCQS AND ANSWERS | EBook
1000 ECONOMICS MCQS FOR EXAMS | EBook
Mughal Empire MCQs | EBook
ECONOMIC GEOGRAPHY MCQs | EBook
350 MCQs ON INDIAN CONSTITUTION | EBook

Java Applets - Core Java Multiple Choice Questions and Answers

Questions
11 On invoking repaint() method for a Component, the method invoked by AWT is :
A draw()
B show()
C update()
D paint()

Answer: Option [D]

update() method is invoked by AWT.

12 The class at the top of the AWT hierarchy is
A Component
B Window
C Container
D Frame

Answer: Option [A]
Advertisement
13 Which of the following statements about hierarchy of the class java.awt.Applet is incorrect?
A An applet is a kind of container
B An applet is a kind of window
C An applet is a kind of component
D An applet is a kind of panel

Answer: Option [C]
14 Which one of the following is a valid declaration of an applet?
A public class MyApplet extends java.applet.Applet {
B public Applet MyApplet {
C public class MyApplet extends applet implements Runnable {
D abstract class MyApplet extends java.applet.Applet {

Answer: Option [A]
15 Java allows programmers to develop the following :
A Applets, applications and Servlets.
B Applets and applications.
C Applets, applications, Servlets, JavaBeans and Distributed objects.
D None of the above.

Answer: Option [A]
Advertisement

Chapters

General Knowledge

Month-wise Current Affairs 2022

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test