Multiple Choice
The getSelectedIndex method returns:
A) the index of the selected item
B) -1 if no item is selected
C) both A and B
D) neither A nor B
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q43: When a JList component is added to
Q44: You can create a label with an
Q45: What will display when the following code
Q46: If the letter chosen as the mnemonic
Q47: Both AWT classes and Swing classes ultimately
Q49: Images may be displayed in labels and:<br>A)
Q50: By default the scroll bars are always
Q51: To add the JList object addressList to
Q52: Which of the following statements creates a
Q53: If addressList exists and has values stored