adplus-dvertising
frame-decoration

Question

Which of these methods can be used to get reference to a component that was removed from a container?

a.

getComponent()

b.

getchild()

c.

getContainerComponent()

d.

getComponentChild()

Posted under Java Programming

Answer: (b).getchild()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of these methods can be used to get reference to a component that was removed from a container?

Similar Questions

Discover Related MCQs

Q. Which of these are integer constants of ComponentEvent class?

Q. Which of these events is generated when computer gains or loses input focus?

Q. FocusEvent is subclass of which of these classes?

Q. Which of these methods can be used to know the type of focus change?

Q. Which of these is superclass of ContainerEvent class?

Q. Which of these events is generated when the window is closed?

Q. Which of these methods can be used to obtain the coordinates of a mouse?

Q. Which of these methods can be used to change location of an event?

Q. Which of these are integer constants of TextEvent class?

Q. Which of these methods is used to obtain the object that generated a WindowEvent?

Q. MouseEvent is subclass of which of these classes?

Q. Which of these methods is used to get x coordinate of the mouse?

Q. Which of these are constants defined in WindowEvent class?

Q. Which of these is superclass of WindowEvent class?

Q. Which of these packages contains all the event handling interfaces?

Q. Which of these interfaces handles the event when a component is added to a container?

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

Q. Which of these interfaces define four methods?

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

Q. Which of these methods will respond when you click any button by mouse?