1.

What is the difference between getSelectedIndex() and getSelectedItem( ) methods ?

Answer»

getSelectedIndex() returns the index number of item selected in combo box. Whereas, getSelectedItem() returns the selected item of the combo box. The return type of this method is object.



Discussion

No Comment Found

Related InterviewSolutions