Multiple Choice
What can be determined about obj from the code below? JMenuItem menuItem = new JMenuItem("Exit") ;
MenuItem.addActionListener(obj) ;
A) The class of obj implements ActionListener
B) menuItem implements ActionListener
C) obj is of type MenuListener
D) obj is an object of an inner class
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: What type of event does the JSlider
Q6: Suppose a JPanel with a BorderLayout manager
Q7: If the makeMenuItem method is called four
Q8: What is the best way to start
Q9: What is wrong with the following code?
Q10: Which of the following adds a border
Q12: Which layout manager uses a grid, but
Q14: Which layout manager allows you to add
Q44: Which of the following statements is correct?<br>A)new
Q61: a(n. _ is used when you have