Question: 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.