Multiple Choice
What is returned by the JList class's getSelectedIndex method?
A) the index of the selected item
B) -1 if no item is selected
C) Both A and B
D) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q3: Which of the following is not a
Q4: The default selection mode for a JList
Q5: What will be the result when the
Q6: The JComboBox class is in this package.<br>A)
Q7: If you call the JTextField component's setEditable
Q9: What will be the result when the
Q10: A mnemonic is<br>A) a single key on
Q11: What will be displayed when the following
Q12: The appearance of a particular system's GUI
Q13: Which of the following statements creates a