Solved

If MyList Is a JList Component, What Will the Value

Question 14

Multiple Choice

If myList is a JList component, what will the value of item be after the following statement is executed?
Item = myList.getSelectedIndex() ;


A) The value of the first selected item in the list.
B) An array of objects containing all the selected items in the list.
C) An array containing the indices of all the selected items in the list.
D) The index of the first selected item in the list.

Correct Answer:

verifed

Verified

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

Related Questions