Solved

If the MakeMenuItem Method Is Called Four Times, at Most

Question 56

Multiple Choice

If the makeMenuItem method is called four times, at most how many different actions can be performed by these four newly created MenuItem objects when the doSomethingElse method is called?
Public JMenuItem makeMenuItem(String menuLabel)
{
JMenuItem mi = new JMenuItem(menuLabel) ;
Class MyMenuListener implements ActionListener
{
Public void actionPerformed(ActionEvent mi.addActionListener(new MyMenuListener() ) ;
Return mi;
}
}


A) 1
B) 2
C) 3
D) 4
E) {
DoSomethingElse(e) ;
}

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions