rgGender.checkedRadioButtonId returns -1 when:
- The first button is checked
- No radio button in the group is selected
- The group is invisible
- Both buttons are checked
Answer
B) No radio button in the group is selected
-1 means nothing is checked.
Computer Science MCQ · More Lab: Registration Form UI MCQs · Practise