Home / Programming Questions / JAVA MCQs / Page 263

JAVA MCQs with answers Page - 263

Dear candidates you will find MCQ questions of JAVA here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

M

Mr. Dubey • 51.47K Points
Coach

Q. Which of these events is generated when a button is pressed?

(A) ActionEvent
(B) KeyEvent
(C) WindowEvent
(D) AdjustmentEvent

M

Mr. Dubey • 51.47K Points
Coach

Q. Which of these methods can be used to obtain the command name for ActionEvent object?

(A) getCommand()
(B) getActionCommand()
(C) getActionEvent()
(D) getActionEventCommand()

M

Mr. Dubey • 51.47K Points
Coach

Q. Which of these interfaces define a method actionPerformed()?

(A) ComponentListener
(B) ContainerListener
(C) ActionListener
(D) InputListener

M

Mr. Dubey • 51.47K Points
Coach

Q. Which of these interfaces define a method itemStateChanged()?

(A) ComponentListener
(B) ContainerListener
(C) ActionListener
(D) ItemListener

M

Mr. Dubey • 51.47K Points
Coach

Q. What are the sequences of method executed when an Applet starts execution?

(A) init(),start(),stop(),destroy()
(B) load(),start(),stop(),unload()
(C) init(),activate(),deactivate(),destroy()
(D) start(),init(),destroy(),stop()

M

Mr. Dubey • 51.47K Points
Coach

Q. The default layout manager of a Frame is

(A) Flowlayout
(B) Gridlayout
(C) BorderLayout
(D) BoxLayout

M

Mr. Dubey • 51.47K Points
Coach

Q. Which package consist an applet class?

(A) applet
(B) java.awt
(C) java.awt.applet
(D) java.event

M

Mr. Dubey • 51.47K Points
Coach

Q. ------------------- is an example of container class

(A) Label
(B) Panel
(C) TextField
(D) Button

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.