What is returned by the JList class's getSelectedIndex method?
A) the index of the selected item
B) -1 if no item is selected
C) Both A and B
D) None of the above
Correct Answer:
Verified
Q5: What will be the result when the
Q6: What is the default directory for the
Q7: Which of the following file types is
Q8: What will be the result when the
Q9: A mnemonic is
A) a single key on
Q11: Which of the following statements creates a
Q12: If null is passed as an argument
Q13: What will be the result of the
Q14: The JComboBox class is in this package.
A)
Q15: If you call the JTextField component's setEditable
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents