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
Q26: When you create an instance of the
Q27: A tool tip is:<br>A) a guide provided
Q28: If a user enters a value in
Q29: To force the JFrame that encloses a
Q30: When an item in a Jlist object
Q32: What will display when the following code
Q33: What does the following statement do?<br>JTextArea textField
Q34: What will the following code do when
Q35: When you write a change listener class
Q36: If a user enters a value in