Solved

If AddressList Is a JList Component, What Will the Value

Question 31

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:

verifed

Verified

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

Related Questions