Solved

If AddressList Is a JList Component,what Will the Value of X

Question 6

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