Multiple Choice
If addressList is a JList component,what will the value of x be after the following statement is executed? x = addressList.getSelectedIndex() ;
A) The value of the first selected item.
B) The index of the first selected item.
C) An array of objects containing the items selected.
D) An array containing the indices of all the selected items in the list.
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Which of the following assigns ALT+C as
Q5: In the following code the setPreferredSize method
Q8: If nameList is a JList component, use
Q11: A menu system may consist of each
Q13: When using a slider, by default, tick
Q18: To add a tool tip to a
Q33: What does the following statement do?<br>JTextArea textField
Q41: The default selection mode for a JList
Q51: To add the JList object addressList to
Q57: A label's preferred size is determined only